BE CAREFUL WITH PHP_ADMIN_VALUE AND OPENING FILES FROM /tmp DIRECTORY ON
*NIX SYSTEMS.

YOU WILL NOT BE ABLE TO OPEN UPLOADED FILES FOR EXAMPLE UNLESS YOU USE THE
'upload_tmp_dir' OPTION AS ANOTHER php_admin_value...

--------------
You can configure this values for independent VirtualHosts.
Just put at your httpd.conf <VirtualHost> section the flag
php_admin_value <variable_name> <value>

Example:
<VirtualHost somedomain.ext>
  DocumentRoot /path/to/file
  ServerName somedomain.ext
  php_admin_value open_basedir /path/to/directory/you/contrain/user/to
</VirtualHost>
--------------






-----Original Message-----
From: Chris Wesley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 20 February 2003 11:18 AM
To:
Cc: Joachim Krebs
Subject: Re: [PHP] open_basedir Option


On Wed, 19 Feb 2003, Joachim Krebs wrote:

> How do I set the php.ini setting open_basedir on a per-directory
> basis? Ideally, I would like to set it using .htaccess files...

open_basedir can only be set in php.ini or httpd.conf.

You might be able to set it in <Directory> stanzas within your httpd.conf,
but you cannot set it in .htaccess files within directories (nor with
ini_set()).

        ~Chris


--
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

Reply via email to