[PHP] register_globals per virtual host

2003-03-19 Thread Dave [Hawk-Systems]
a while ago we upgraded the php installations on our servers.  for a quick fix
we set register_globals to on for code compatibility.  Since then we have been
cleaning up code to eliminate this.  We likely still have some virtual hosts who
are using these globals though, so while we are wanting them to modify their
code, we wish to turn globals off for the rest of the server, and allow those
sites to be the exception to the rule.

Assumption is that adding a php_admin_value register_globals on to selected
virtual host containers in apache will allow that particular site access to the
globals while allowing the default (off) for the remainder of the sites.

Is the assumption correct?  Ramifications or caveats that should be considered?

Dave



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



Re: [PHP] register_globals per virtual host

2003-03-19 Thread Abdul-wahid Paterson
Hi,

I think you want to use:

php_value register_globals Off


I have this setup in VirtualHost's and in .htaccess files. The
difference between php_value and php_admin_value is that php_admin_value
can not be overridden in a .htaccess file or VirtualHost. So if you want
to enforce some settings and allow users to change others you can force
them with php_admin_value.


-- 
Abdul-Wahid Paterson

Lintrix Networking  Communications ltd.
Web: http://www.lintrix.net/
Tel: +44 7801 070621
Email/Jabber: [EMAIL PROTECTED]

Web-Hosting  |  Development  |  Security  |  Consultancy  |  Domains



signature.asc
Description: This is a digitally signed message part