Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specify location of PHP handler

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've been working on a little news script in PHP, and I've run into a seemingly insurmountable problem. You see, I wrote my program in PHP 4, which is all good and fine; however my friend wants to use it on his site. This poses a problem because the site is hosted by a commercial web host, and their (Apache) server defaults to PHP 3. However, they claim that they have PHP 4 installed at /usr/bin/php and I've been trying to figure out how I can specify to run my scripts with PHP 4. I've tried adding a .htaccess file, but it seems that they don't have the FileInfo override enabled. I've also tried making a simple .cgi file with the shebang specifying the location of php, but I either did that wrong, or it doesnt work either. (I dont really want to do that if there's any other way anyway, it's quite hackish...) So if anyone has any advice/comments please respond... :(
-Michael Coupland
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top