PHP Problem Beginner PHP

Source: Internet
Author: User
I'm paired with xampp. Why do I use Dreamweaver to write code in the browser does not display the results of the output and display the original code after the corresponding directory to create a new text file to change its format to PHP running in the browser to display the correct results?


Reply to discussion (solution)

Did you put your files in the root directory? What is the access URL?

Post the code to see
Whether the PHP performance is not resolved.

Hand mistake PHP Tag

Does Dreamweaver write code save. PHP or. html?
If it is. PHP will not parse correctly,. html is displayed directly.

The new landlord, Post does not knot paste, also do not reply to others, everyone scattered, do not help such people

I'm paired with xampp. Why do I use Dreamweaver to write code in the browser does not display the results of the output and display the original code after the corresponding directory to create a new text file to change its format to PHP running in the browser to display the correct results?


The http:/localhost is placed under the specified directory.

Does Dreamweaver write code save. PHP or. html?
If it is. PHP will not parse correctly,. html is displayed directly.


PHP has changed a few environments.

Post the code to see
Whether the PHP performance is not resolved.


What code is so, it is in Dreamweaver run can but write the early browser shows the code instead of the results

Phpinfo ();
?>
Let's see what's on the line. Shown

If yes, see if Short_open_tag is on, if not? Modify PHP.ini to make it on.

Short_open_tag? Off of the situation, in the generation? The original?? Out, estimate? Love?

Phpinfo ();
?>
Let's see what's on the line. Shown

If yes, see if Short_open_tag is on, if not? Modify PHP.ini to make it on.

Short_open_tag? Off of the situation, in the generation? The original?? Out, estimate? Love?


The result is still
Phpinfo ();
?>

Build a good environment again?

Obviously PHP is not parsed, the environment is wrong

Obviously PHP is not parsed, the environment is wrong


So why write a TXT file in the directory and then change the properties to run it?

Build a good environment again?


Novice first Contact But just don't understand why in the directory is written in the open can be run

Problem solved, thank you.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.