i am trying to upload a file. The upload_tmp_dir in php.ini is set to /var/www/html/fp, but the file is reported to be uploaded in /tmp directory but in reality no file gets uploaded in the /tmp directory either. There gets no file named $_FILES['userfile']['tmp_name'] uploaded in the /tmp directory.
Also, when i check $_FILES['userfile']['error'] the value comes out to be '0' implying that file has been uploaded successfully.
Also when i just try to move the uploaded file using move_uploaded_file($_FILES['userfile']['tmp_name'],/var/www/html/fp/) i get the following errors
Warning: Unable to create '/var/www/html/fp/': Is a directory in /var/www/html/tri11.php on line 6
Warning: Unable to move '/tmp/phpuIJP46' to '/var/www/html/fp/' in /var/www/html/tri11.php on line 6
I am just not getting what's the problem?