|
|
Posted by J.O. Aho on 02/18/07 08:59
Ken Williams wrote:
> I run PHP 4.4 on linux with Apache 1.3. I have global variables on. I
> would like to confirm if its possible to turn off global variables for
> individual virtual hosts in my httpd.conf?
if you have minor differences in the php.ini settings, then you can use
<IfModule mod_php4.c>
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0
</IfModule>
inside the virtualhost-tags.
http://devzone.zend.com/manual/view/page/configuration.changes.html
If you want separated php.ini for each, then take a look at this link (I hope
this was the right one):
http://ckdake.com/projects/documentation/php_security
--
//Aho
Navigation:
[Reply to this message]
|