faqts : Computers : Programming : Languages : PHP

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

95 of 204 people (47%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Security Alert! PHP CGI cannot be accessed directly

Feb 29th, 2008 09:40
dman, Articles Way, Justin Dalrymple, Omar Chicas, http://www.ttnr.org


Set ...
force_cgi_redirect = 0
... in your php.ini file.
This effects *nix boxes when you try to call PHP from the command line.
This is most often seen when trying to execute a CRON job with:
php /path/to/file.php
====
issociate.de/board/post/188758/Security_Alert!
_The_PHP_CGI_cannot_be_accessed_directly....html 
i hope that helps.