RE: [PHP] Apache per directory setting
| From: | Rainsford, David | Date: | Wed, 07 Jan 2004 06:01:59 +0000 |
| Subject: | RE: [PHP] Apache per directory setting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173947@lists.php.net to get a copy of this message | ||
You should have a look at the php.ini - the location of which can be found
if you run a script containing the following:
<?php phpinfo(); ?>
In that file you can turn on the php.ini. If you just want it on for
certain files, you can use the ini_set() function in those files. I don't
think you can easily do it on a by directory basis.
David Rainsford
Software Engineer
-----Original Message-----
From: Chris Lee [mailto:chrislee@hotmail.com]
Sent: Wednesday, 7 January 2004 14:44
To: php-general@lists.php.net
Subject: [PHP] Apache per directory setting
Hi,
Is it possible to set PHP flag at Apache ver 1.3.x per directory?
e.g.
<VirtualHost 127.0.0.1>
DocumentRoot /home/www/apps/htdocs
ServerName localhost
<Directory "/home/www/cch/htdocs/test">
php_flag register_globals on
</Directory>
</VirtualHost>
I tried but fail to turn on Register Globals settings (Default is off). Any
Hints?
Regards,
Chris Lee
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php