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:[EMAIL PROTECTED] Sent: Wednesday, 7 January 2004 14:44 To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php