php can' t locate the upload temporary directory
Posted: Tue Jul 14, 2009 7:03 am
I made a virtual test server for myself with the following specs: Fedora 8, Apache 2.2.6, PHP 5.2.4, MySQL 5.0 .
I had made a class for uploading but after each test I got the number 6 error which stands for UPLOAD_ERR_NO_TMP_DIR. I modified the upload_tmp_dir value to /tmp, then to /var/www/tmp. It didn' t work. I modified the permissions to 777 for /var/www/tmp it still didn' t work giving the same error.
EDIT: I had tested the script on other server and it' s working.
Any ideas why is this happening?
I had made a class for uploading but after each test I got the number 6 error which stands for UPLOAD_ERR_NO_TMP_DIR. I modified the upload_tmp_dir value to /tmp, then to /var/www/tmp. It didn' t work. I modified the permissions to 777 for /var/www/tmp it still didn' t work giving the same error.
EDIT: I had tested the script on other server and it' s working.
Any ideas why is this happening?