You are here: Re: Using local php.ini files « PHP Programming Language « IT news, forums, messages
Re: Using local php.ini files

Posted by Chuck Anderson on 07/27/06 19:36

J.J.SOLARI wrote:
> Chuck Anderson <websiteaddress@seemy.sig> wrote:
>
>
>
>>> In your htaccess file, you would then have:
>>>
>>> SetEnv PHPRC /path/to/your/php.ini
>>>
>>> hih,
>>>
>>> JJS.
>>>
>>>
>> Thanks. Php is running as a cgi at my web host, so I tried what you
>> said, ... but no luck. I cannot set the Environment variable PHPRC.
>>
>> I wonder if permission has to be granted in httpd.conf.
>>
>> (Note: while researching this I found that you should specify the path
>> to the directory php.ini is in, not to the file itself. i.e.,
>> /path/to/your/phpinidirectory)
>>
>
> Chuck,
>
> Indeed, my mistake :(
>
> Also, I forgot to put quotes around ; so, it should read:
>
> SetEnv PHPRC "/path/to/your_php.ini/directory/"
>
> Note that this path is not taken from the server root, but from the
> filesystem root (check with phpinfo).
>
> hope it will work this time,
>
> JJS.
>
Thanks again, but I already tried several formats (quotes, no quotes,
trailing slash, no trailing slash, ...). I think something is not
allowing me to set that (or Php was compiled to ignore it?).

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Everyone's journey should be different,
so that we all are enriched
in new and endless ways
*****************************

 

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

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