You are here: What are the pros and cons of running php as a regular CGI « PHP Programming Language « IT news, forums, messages
What are the pros and cons of running php as a regular CGI

Posted by kurt.krueckeberg on 11/20/51 11:29

I am considering going with the ISP Dreamhost because they offers both
php4 and php5 support. However, I recently learned php4 runs as a
regular CGI by default. This can be change, so it will runs as an
Apache module. But if you want to run php5, you must run as PHP-CGI.
Dreamhost states there are:

"There are a FEW VERY MINOR drawbacks to running PHP-CGI. They are:

* Custom 404 pages won't work for .php files with PHP-CGI.

* Variables in the URL which are not regular ?foo=bar variables
won't work without using mod_rewrite
(example.com/blah.php/username/info/variable).

* Custom php directives in .htaccess files (php_include_dir
/home/user;/home/user/example_dir) won't work.

* The $_SERVER['SCRIPT_NAME'] variable will return the php.cgi
binary rather than the name of your script"

But are these really minor drawbacks? What if, for example, you really
do need to override a php directive? Any feedback would be appreciated.


Thanks,
Kurt

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация