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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Ferdog Posted August 12, 2007 Author Share Posted August 12, 2007 You're right. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.