I have a hosting account at Interland which offers PHP support as follows:
Interland currently has PHP 4.06 installed on all its Linux/UNIX servers. This version also runs PHP3. PHP is only available with the TrueAdvanced Plan or higher. The file needs to have the following:
Files need to have a .php or .php3 extension
Files need to be uploaded in ASCII
Files need to have 755 permissions, and the path to PHP at the top of the file. The path to PHP is #!/usr/local/bin/php
Including the path to PHP is a real problem when using complex scripts written by others (e.g. Gallery, phpMyAdmin, etc.). If I put the path at the top of every script, I get header errors when one script calls another. Also, sometimes the path statement ends up being echoed to the screen. All-in-all, not a nice solution. Is there some way around this requirement, perhaps using .htaccess?
Any help is much appreciated. Thanks.
--Jeff