Php Tags In .html Files Don't Work In Webmatrix
I've been learning web development and the book I am learning from is using php tags within html files but they don't work for me, here is my header page: &l
Solution 1:
Please change file extention from .html to .php
Solution 2:
Web servers are configured to detect the file type by looking at the extension. By default it will route .php files through the PHP interpreter, and .html files will be served directly to the end user. You can configure this behaviour via the server's config file, or the local .htaccess file for the individual web directory.
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Do this if you really don't want to save your files as .php
. Or else saving your files with .php does the job
Solution 3:
If you want to use php code you have to use .php extension, so change extension to .php.
Post a Comment for "Php Tags In .html Files Don't Work In Webmatrix"