Welcome to WebmasterWorld Guest from 18.104.22.168
I suspect that what is happening, however, is that your host limits the control you have over with PHP or .htaccess or both. I ran into this with a host that used, of all things, *.php4 as the default extension for php4 and would not allow any user control.
If that's the case, your best bet will probably be to grep for .php and change it to .php3. This worked in my case (php => ph4). The problem in your case, however, is that many scripts have features that are only available in php4 and so they will not run under php3 no matter what you call them. You will get constant "undefined function" errors when you run the script".
AddType application/x-httpd-php3 .php
That should work. I don't know why it doesn't. It is definitely the command you need.
You can see the Apache Manual Entry on AddType [httpd.apache.org] if you want, but that shoudl definitely work.
Just to verify, if you create a php3 script and name it file.php3, does it run?
in fact they just said he could edit his .htaccess
Thatīs right. They just said you can use it all you want. They never said it will work.
I donīt know, but Iīm assuming there is no way. It might be considered a security problem if everybody could access the server configuration beyond the data displayed by phpinfo.
"Your Web Hosting Site supports both versions 2.x and 3.x of PHP. Your PHP scripts are denoted by their extension, either .phtml or .php3. PHP files using the extension .phtml will be interpreted by PHP 2.0. PHP files using the extension .php3 will be interpreted by PHP 3.0. PHP 2.x is supported only for backward compatibility for customers who already use it, and will be phased out at some point in the future. We strongly recommend that new customers use version 3.0 (.php3)."
Thanks for all your input, time to look for a new host!