Reply to PHP CGI Variables

Your name:

Reply:


Posted by Tim Traver on 01/11/06 01:53

Hi all,

ok, I want to re-post this so that more people might see it, cause there
has to be an answer somewhere...

When using the GCI version of PHP with apache, I need to be able to set
some of the php_admin_values that normally get set in the php.ini file
on the fly...

Since I am not using mod_php, the solutions already given to me of
setting php_admin_values in <Directory> sections or .htaccess files
simply doesn't work, cause apache doesn't have any idea what they are.

I am trying to avoid having to have separate php.ini files for every
virtual host, as I only want to set a few convenience parameters.

Besides PHPRC, does the CGI version of the PHP binary read in any other
environment variables ? Cause it would be easy enough to set an
environment variable to be passed to PHP for those settings.

There's got to be someone out there that has done this, or wants to do
this. I'm tempted to start looking at the code base and seeing if a
simple patch will allow me to do that, but I want to make sure I'm not
missing anything...

Any PHP Guru's out there ???

Thanks,

Tim.

[Back to original 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

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