Write PHP in Dreamweaver in HTML

Source: Internet
Author: User
PHP is not written in the Dreamweaver HTML
In the HTML file. Write code will not be executed, open the browser to see the source code is commented, this is why?
As follows
Dreamweaver PHP HTML

Share to:


------Solution--------------------
To be written in a PHP file will be executed by the server compiler

------Solution--------------------
References:
Quote: References:

To write in the PHP file will be compiled by the server to execute
that my home page is HTML, and then decide whether to login the session implementation, to become a PHP page?

To use PHP pages to do
HTML can only be static.
------Solution--------------------
That's the Ajax judgment.
or a URL rewrite.
------Solution--------------------
Reference:
Quote: Reference:

That's the Ajax judgment.
or URL rewrite
oh, well, doesn't it mean that PHP can be embedded everywhere?


Says who?
------Solution--------------------
References:
PHP ("Php:hypertext preprocessor", the acronym for Hypertext Preprocessor) is a widely used, open-source, multipurpose scripting language that can be embedded in HTML
。。。 Can I use. php to do the homepage?

Yes, you can use index.php on the homepage.
If you want the Index.html form can be implemented with URL rewriting
------Solution--------------------
You can search the pseudo-static estimate to solve your problem.
------Solution--------------------
Your HTML does not execute PHP depending on your Web server, the general default configuration is not to execute HTML inside PHP.
  • Related Article

    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.