faqts : Computers : Programming : Languages : PHP : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 7 people (100%) answered Yes
Recently 3 of 3 people (100%) answered Yes

Entry

Why can't I get my php scripts to execute when run from my cgi-bin directory?

Dec 11th, 2000 18:18
Philip Olson, James Reid, http://www.php.net/manual/security.php


Put the following on top of your scripts :
#!/usr/local/bin/php -q
To find that exact path, you can use the *nix which command :
which php