embeding PHP into HTML
Posted 02 April 2005 - 10:50 AM
Posted 04 April 2005 - 05:54 AM
Posted 04 April 2005 - 10:05 AM
addtype application/x-httpd-php .html .htm .bla
You can add wathever you might want to, even something crazy, like .bla, your name or your nickname.
In other words, personlize your site. If you do have.... personality.
Posted 07 April 2005 - 10:10 PM
I'd say in W:\usr\local\apache2\conf\httpd.conf
AddType application/x-httpd-php .phtml .php3 .php
Edit line to read
AddType application/x-httpd-php .phtml .php3 .php .html .htm
If needed in one or more folders: Use gopo's method, add them via .htaccess
But I need to point out the security risk associated with this method!
Any upload script should probably be updated to see the newly defined files as executables too, and treat them with the same care as .php files are given. Most to me known PHP upload systems see .html files as a kind of documents, and that may be dangerous.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users