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

Posted by Tony Marston on 11/19/91 11:29

Personally I would not accept these "drawbacks". I expect any web hosting
company to offer PHP as an Apache module so I can have the FULL power of
Apache and PHP at my disposal. Anything else would be unacceptable.

But that's just my personal opinion.

--
Tony Marston
http://www.tonymarston.net

<kurt.krueckeberg@gmail.com> wrote in message
news:1129482151.512951.27900@g49g2000cwa.googlegroups.com...
>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

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