Php configuration problems, phpinfo can be resolved, but others cannot. Ask for advice! -Php Tutorial

Source: Internet
Author: User
Php configuration problems, phpinfo can be resolved, but others cannot. Ask for advice! Ask a question: why can I parse phpinfo () after configuration, but cannot parse other PHP files. The source code is displayed. However For example:
Echo"

Order processed

"
;?>
Then display
Order processed
";?>
My httpd. conf setting is to change the phph and apache paths and add the Loadmodule and addtype statements.
Ask where the problem exists.
Thank you!


Reply to discussion (solution)

Installation and configuration of Apache + php + mysql in windows
Perform the configuration as shown in the preceding figure.

Order processed

";?> Can this happen?

This is not the case?
Echo"

Order processed

";
?>

Order processed

";?> Can this happen?

This is not the case?
Echo"

Order processed

";
?>



Hmm ~ All have been tried. None

Installation and configuration of Apache + php + mysql in windows
Perform the configuration as shown in the preceding figure.



My and the above settings do not show their right ~

Where did you run it?

Can this sentence be used?
Phpinfo ();
?>

Try this
Echo "helloworld! ";
?>

Where did you run it?


I used to open it directly, so I couldn't do it. I put it in htdocs and enter the localhost address in the browser.
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.