[PHP] Howto ? Local/Master Value

2003-10-11 Thread ada
Hi all,

I m note a great php config hacker.
But I notice thing that i doesnt have to notice before :)
In my phpinfo i notice 2 column ;
Local Value  Master Value

http://www.dealgates.com/phpinfo.php

So you can make several config judging from the current account ?
I dont found anything about that ...

How several configs are maintained in a mutual web server ?
Surely one php.ini for all and some little hacks on vhosts config ?
like here :
http://www.php.net/features.safe-mode
You can a vhost.conf file.

Directory /vhosts/domain.com/httpdocs/
php_admin_value safe_mode 0
php_admin_value open_basedir /
/Directory

Explain me ?

Thanks.

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



Re: [PHP] Howto ? Local/Master Value

2003-10-11 Thread Jason Wong
On Sunday 12 October 2003 02:26, ada wrote:

 So you can make several config judging from the current account ?
 I dont found anything about that ...

Kind of.

 How several configs are maintained in a mutual web server ?
 Surely one php.ini for all and some little hacks on vhosts config ?

They're not hacks. They *are* one of the mechanisms for having different 
configs of php for different purposes.

 like here :
 http://www.php.net/features.safe-mode
 You can a vhost.conf file.

 Directory /vhosts/domain.com/httpdocs/
 php_admin_value safe_mode 0
 php_admin_value open_basedir /
 /Directory

 Explain me ?

Have a look at the manual entry for ini_set(). There's a useful table which 
tells you *what* php config item can be changed and *where* it can be 
changed.

The master value shown by phpinfo() is setting in php,ini, and the local value 
is whatever it has been set to at the time phpinfo() is executed.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Drawing on my fine command of language, I said nothing.
*/

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