Why cannot I display html files that contain PHP files uploaded to the server? What should I do?

Source: Internet
Author: User
Html files include PHP files that cannot be displayed after being uploaded to the server ?? I have created two files. one is an HTML file, the other is a PHP file, and the content of the two files is the same. Why does php display normally? only ceshi123 does not display PHP code in html! Can html directly reference PHP? Results of two files uploaded to the server: the http://www.h html file contains PHP files uploaded to the server cannot be displayed after ??
I have created two files. one is an HTML file, the other is a PHP file, and the content of the two files is the same.
Why does php display normally? only ceshi123 does not display PHP code in html!
Can html directly reference PHP?
The result of uploading two files to the server:
Http://www.hu0010.com/index.html
Http://www.hu0010.com/index.php

It is displayed on my local machine. my local configuration is apache2.2.21 php5.4 orc4 mysql 5.5.18 phpmyadmin 3.2.5.
Server Configuration: Microsoft-IIS/6.0 PHP Version 5.2.17 mysql 5.1.57-community phpmyadmin 3.3.10

Content:




Xtep life




Test ceshi123
Include ("conn. php ");
Echo "hello world! ";
Phpinfo ();
?>




------ Solution --------------------
Can html directly reference PHP?
The opposite!
Php can directly reference html.

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.