Why is the PHP code wrong?
Kkk
echo "HTML php!";
?>
Mozila Firefox browser, display only: KKK.
The PHP code section is not displayed, why?
Share to:
------Solution--------------------
Change the file name to: a.php so that the PHP code can be parsed
------Solution--------------------
References:
Quote: References:
Change the file name to: a.php so that the PHP code can be parsed
1. The above source code, mixed with HTML language, PHP language. Why does the file name suffix must be. php to parse the PHP code?
2. If the source code has HMTL language, PHP language, JavaScript language and many other languages mixed together. So, what should the filename suffix be?
PHP at the end, there is PHP code must be PHP to compile, and then to the server, and then sent to the browser to respond to the user, this is the process
------Solution--------------------
··· File name is the HTM server how to parse the pinch Change to PHP file first
------Solution--------------------
Take Apache for example httpd.conf inside there
AddType application/x-httpd-php. PhP4. php3. php . htm. html . phtml. Ph. Inc