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.