LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache 1.3.28/PHP 4.3.3 can't write temp file (https://www.linuxquestions.org/questions/linux-software-2/apache-1-3-28-php-4-3-3-can%27t-write-temp-file-192010/)

tm_burningdog 06-10-2004 01:49 PM

Apache 1.3.28/PHP 4.3.3 can't write temp file
 
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.


All times are GMT -5. The time now is 07:09 AM.