WildWayz
Fri 6th Apr '01, 3:26am
When I had a shared account that only supported .PHP3 extensions I thought this was a pain, so I found out how to enable .PHP files on the server without editing HTTPD.CONF.
Create a file called .htaccess and put it in my www or public_html folder (Basically the root www accessible directory).
In the file I have these lines
DirectoryIndex index.html index.htm index.shtml index.php3 index.php
THEN
If you have PHP4 then add this
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
If you have PHP3 then add this
AddType application/x-httpd-php3 .php .phtml .php3
AddType application/x-httpd-php3-source .phps
This will then make .php files parse as .php3 for the whole of your site (as well as you can also run .phtml)
--James
Create a file called .htaccess and put it in my www or public_html folder (Basically the root www accessible directory).
In the file I have these lines
DirectoryIndex index.html index.htm index.shtml index.php3 index.php
THEN
If you have PHP4 then add this
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
If you have PHP3 then add this
AddType application/x-httpd-php3 .php .phtml .php3
AddType application/x-httpd-php3-source .phps
This will then make .php files parse as .php3 for the whole of your site (as well as you can also run .phtml)
--James