HTM Extension not working at all!, :confused: HELP !!
Squire
Feb 3 2005, 07:18 AM
HTML files will not be sent to the PHP processor unless you specifically tell the server to do that. One is straight text and the other is pre-processed by the server prior to delivering the HTML to the browser. This is a standard setup for every server and is not something that has anything to do with Plesk.
If you want your server to process .html files as .php files you should be able to use an .htaccess so that it only affects that specific domain. Create an .htaccess file and put the following in it:
[PHP]AddHandler application/x-httpd-php .html .php[/PHP]
Upload that to the root level of the domain and you should be set.
This may not be any help as I am not a PHP expert but I use the tag I don't know that it helps, it is just the way I learned it.
You might try it and if it works, great. If not, then hopefully someone with more coding experience can point you in the right direction.
christian
Feb 3 2005, 09:01 PM
thanks anyway! ...
Squire
Feb 4 2005, 02:52 AM
Read my post above christian.
HTML is not PHP.
You can either name your files with a .php extension to have the server recognize and process your php commands, or alternatively you can configure your server so that it also pre-processes .html files as if they were php.
christian
Feb 4 2005, 06:35 AM
Thanks Squire I made it
.htaccess
AddType application/x-httpd-php .html
Thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.