Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/pleskhosts.com/httpdocs/forum/includes/init.php on line 49

My users are getting a upload_tmp_dir error in php [Archive] - Forums

View Full Version : My users are getting a upload_tmp_dir error in php


speedy
05-29-2007, 06:54 AM
This can be done by adding upload_tmp_dir /tmp into php.ini.


It is usually found in /etc directory, but to be sure, type
locate php.ini to find our for sure where yours is.

You can easily find out if you have the upload temp dir set to anything by typing:
cat /etc/php.ini | grep upload_tmp_dir

if it comes back with only
;upload_tmp_dir =

Then go into the file
nano -w /etc/php.ini

And then press Ctrl+w and type upload_tmp_dir once you find the line, uncomment the line and change it to
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp

Restart apache
/sbin/service httpd restart


Transfer a Domain Name $9.99
Register A Domain Name  $9.99
www.