Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread raditha dissanayake
David Garamond wrote:
Um, am I missing something here? ITTRFMTR (is that the right fine 
manual to read?)

I originally asked why the php cli binary cannot be told to look for 
php.ini in a custom location specified via an environment variable (it 
only accepts the -c command line argument). All other interpreters I 
know can. So if there _is_ an env var to do that, what is it? I didn't 
see it and certainly strace doesn't show my /usr/bin/php doing any 
getenv() during startup.

Regards,
dave
perhaps people had trouble reading your post properly because of all the 
CAPS.

--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
Jordi Canals wrote:
On Sun, 14 Nov 2004 23:42:58 +0700, David Garamond
<[EMAIL PROTECTED]> wrote:
Greg Donald wrote:

print_r($_ENV);
What should I see in it?
RTFM
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.environment
Um, am I missing something here? ITTRFMTR (is that the right fine manual 
to read?)

I originally asked why the php cli binary cannot be told to look for 
php.ini in a custom location specified via an environment variable (it 
only accepts the -c command line argument). All other interpreters I 
know can. So if there _is_ an env var to do that, what is it? I didn't 
see it and certainly strace doesn't show my /usr/bin/php doing any 
getenv() during startup.

Regards,
dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread Jordi Canals
On Sun, 14 Nov 2004 23:42:58 +0700, David Garamond
<[EMAIL PROTECTED]> wrote:
> Greg Donald wrote:
> 
> 
> > print_r($_ENV);
> 
> What should I see in it?
> 

RTFM

http://www.php.net/manual/en/reserved.variables.php#reserved.variables.environment

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
Greg Donald wrote:
On Sun, 14 Nov 2004 21:53:52 +0700, David Garamond
<[EMAIL PROTECTED]> wrote:
I wonder why the CLI version of PHP doesn't consult environment
variables to override some default settings. This mechanism is used by
all the other interpreters that I use (e.g.: perl with PERLLIB/etc,
python with PYTHONHOME/PYTHONPATH/etc, ruby with
RUBYOPT/RUBYLIB/RUBYPATH/etc).
PS: I am aware of -c. It would be nice to have something like
PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though...
print_r($_ENV);
What should I see in it?
--
dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread Greg Donald
On Sun, 14 Nov 2004 21:53:52 +0700, David Garamond
<[EMAIL PROTECTED]> wrote:
> I wonder why the CLI version of PHP doesn't consult environment
> variables to override some default settings. This mechanism is used by
> all the other interpreters that I use (e.g.: perl with PERLLIB/etc,
> python with PYTHONHOME/PYTHONPATH/etc, ruby with
> RUBYOPT/RUBYLIB/RUBYPATH/etc).
> 
> PS: I am aware of -c. It would be nice to have something like
> PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though...

print_r($_ENV);


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
I wonder why the CLI version of PHP doesn't consult environment 
variables to override some default settings. This mechanism is used by 
all the other interpreters that I use (e.g.: perl with PERLLIB/etc, 
python with PYTHONHOME/PYTHONPATH/etc, ruby with 
RUBYOPT/RUBYLIB/RUBYPATH/etc).

PS: I am aware of -c. It would be nice to have something like 
PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though...

Regards,
dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php