For php configuration problems, phpinfo can be parsed, but others cannot. 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. But & lt ;? The php & nbsp; label is followed by a statement that can be parsed, and the following content will not work. Example: & lt ;? Php & nbsp; echo & nbsp; & lt; p php configuration problems. phpinfo can be parsed, 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!
------ Solution --------------------
Installation and configuration of Apache + php + mysql in windows
Perform the configuration as shown in the preceding figure.
------ Solution --------------------
Order processed

";?> Can this happen?

This is not the case?
Echo"

Order processed

";
?>
------ Solution --------------------
Where did you run it?
------ Solution --------------------
Can this sentence be used?
Phpinfo ();
?>

Try this
Echo "helloworld! ";
?>

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.