Ferdog Posted August 12, 2007 Share Posted August 12, 2007 OS: FreeBSD 6.1 Apache 1.3.37 PHP 5.2.3 with Suhosin-Patch 0.9.6.2 I can't get any php_value directives in my .htaccess file working, specifically upload_tmp_dir. PHP is running as an Apache module and in httpd.conf I have AllowOverride All. This is what is in the .htaccess file which is in the root of the virtual host's web directory: php_value upload_tmp_dir /usr/local/www/mydomain/uploads When a file is uploaded through my very basic HTML form it is still being uploaded to the default directory /var/tmp. My simple HTML form: <form enctype="multipart/form-data" accept="image/png,image/gif,image/jpg" action="uploader.php" method="POST"> Choose a file to upload: <input name="uploadedfile" type="file" /> <input type="submit" value="Upload File" /> Any guidance would be appreciated. Link to comment https://forums.phpfreaks.com/topic/64455-php_value-in-htaccess-not-working/ Share on other sites More sharing options...
trq Posted August 12, 2007 Share Posted August 12, 2007 upload_tmp_dir can only be set within the php ini system. Link to comment https://forums.phpfreaks.com/topic/64455-php_value-in-htaccess-not-working/#findComment-321356 Share on other sites More sharing options...
Ferdog Posted August 12, 2007 Author Share Posted August 12, 2007 You're right. Thanks. Link to comment https://forums.phpfreaks.com/topic/64455-php_value-in-htaccess-not-working/#findComment-321807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.