For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > March 2007 > Enviroment Variables Inside PHP.INI









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Enviroment Variables Inside PHP.INI
Roberto Antonio Berrospe Machin

2007-03-15, 7:03 pm

Hi.
I'm building a portable webserver, wich will include php5.
The problem i am having is that i cannot make the extensions to work.
What i need is to specify an enviroment variable for extensions_dir
directive. I've alread tested $VAR, %VAR%, ${VAR} with no luck.
I've already tested ussing httpd.conf file config, wich set the LOCAL
config for this directive, but php allways looks for the Main ref to
locate the extension thats intented to be loaded. If i try to use the
usual way, like "./ext" and so, dont work either, because the php
binaries default ext folder is in another place under /usr/local/php5.
So the question is, is there a way to use enviroment variables to
specify a folder or something? like apache does with ${VAR} ?
Thanks.
Roberto.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com