RE: [PHP] ini_get

2004-06-07 Thread Ford, Mike [LSS]
On 06 June 2004 22:43, Dennis Gearon wrote:

> CC me please.
> 
> Does anyone know if ini_get returns the values BEFORE or AFTER the
> .htaccess modifies them? i.e., does it return the server or
> local version?

It gets the value the script is currently running with.  This will be the
local version, unless it has been further modified by an ini_set in the
script.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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



[PHP] ini_get

2004-06-06 Thread Dennis Gearon
CC me please.
Does anyone know if ini_get returns the values BEFORE or AFTER the 
.htaccess modifies them? i.e., does it return the server or local version?

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


Re: [PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Teodor Cimpoesu

Hi Zeev!
On Fri, 02 Feb 2001, Zeev Suraski wrote:

> get_cfg_var() is an old PHP 3.0 era function, that returns the value for a 
> directive in the php.ini file.  This value may be valid or invalid, 
> depending on whether it was overwritten by other configuration methods 
> (e.g., httpd.conf or .htaccess).  This function will always return the 
> value that was typed in php.ini, if any.
> 
> ini_get() is a new PHP 4.0 function, that uses the new INI subsystem 
> introduced in 4.0.  It will always return the active value, and not 
> necessarily the value that was in the php.ini.  Generally, unless you're 
> writing a script that actually deals with the php.ini file, you should 
> always use this function and not get_cfg_var().
> 
That was also my guess, thank you very much for clarifing on it :)
I was mislead by the ini prefix, and though it refers only to the php.ini
file. So the ini_get() will return the `local' value not the `master' one.

Good to know.

-- teodor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Zeev Suraski

get_cfg_var() is an old PHP 3.0 era function, that returns the value for a 
directive in the php.ini file.  This value may be valid or invalid, 
depending on whether it was overwritten by other configuration methods 
(e.g., httpd.conf or .htaccess).  This function will always return the 
value that was typed in php.ini, if any.

ini_get() is a new PHP 4.0 function, that uses the new INI subsystem 
introduced in 4.0.  It will always return the active value, and not 
necessarily the value that was in the php.ini.  Generally, unless you're 
writing a script that actually deals with the php.ini file, you should 
always use this function and not get_cfg_var().

Zeev

At 16:10 2/2/2001, Teodor Cimpoesu wrote:
>What's the difference between these two functions?
>from the manual I couldn't figure any:
>
>get_cfg_var -- Get the value of a PHP configuration option.
>ini_get -- Get the value of a configuration option
>
>is ini_get just an alias to get_cfg_var() or vice versa somehow?
>dunno :)
>
>TIA
>
>-- teodor
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Zeev Suraski

At 16:10 2/2/2001, Teodor Cimpoesu wrote:
>What's the difference between these two functions?
>from the manual I couldn't figure any:
>
>get_cfg_var -- Get the value of a PHP configuration option.
>ini_get -- Get the value of a configuration option
>
>is ini_get just an alias to get_cfg_var() or vice versa somehow?
>dunno :)
>
>TIA
>
>-- teodor
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Teodor Cimpoesu

What's the difference between these two functions?
from the manual I couldn't figure any:

get_cfg_var -- Get the value of a PHP configuration option. 
ini_get -- Get the value of a configuration option

is ini_get just an alias to get_cfg_var() or vice versa somehow?
dunno :)

TIA

-- teodor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]