I'm working on a file upload script with PHP, but for whatever reason, Apache/PHP can't write the temporary file after uploading.
The error I get is:
Code:
Warning: fopen(/tmp/phpmmk8jv): failed to open stream: No such file or directory in /var/www/phpdev/upload/upload.php on line 92
Warning: filesize(): Stat failed for /tmp/phpmmk8jv (errno=2 - No such file or directory) in /var/www/phpdev/upload/upload.php on line 95
Warning: fread(): supplied argument is not a valid stream resource in /var/www/phpdev/upload/upload.php on line 95
Obviously the fopen/filesize/fread errors are because the file doesn't exist. I just can't figure out why Apache/PHP isn't
making the file exist.
Permissions on /tmp are rwxrwxrwt.