Re: Where to change upload_tmp_dir ini setting
| From: | Peter Risdon | Date: | Fri, 21 May 2004 17:23:23 +0000 |
| Subject: | Re: Where to change upload_tmp_dir ini setting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186694@lists.php.net to get a copy of this message | ||
Peter Risdon wrote:
Hi, This page: http://www.php.net/manual/en/function.ini-set.php tells me that upload_tmp_dir is of level PHP_INI_SYSTEM and can therefore only be altered in php.ini or httpd.conf I want to be able to set this by virtual host. My httpd.conf <include>s a directory which contains seperate files for each virtual host and in one of these I have added: <IfModule mod_php4.c> AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps php_admin_value upload_tmp_dir "/path/to/upload/directory/" </IfModule> ... and it has absolutely no effect.I assume that PHP_INI_SYSTEM means this is a system-wide variable, and so can only be set in the default host settings in httpd.conf or in php.ini. If this is right, is it documented anywhere? I'd be grateful for a steer. PWR.
I have restarted apache using apachectl graceful and stop/start but it makes no difference. Files uploaded using POST get put in /var/tmp I also tried it with php_value instead of php_admin_value. Any guidance would be appreciated. PWR.