LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-10-2004, 01:49 PM   #1
tm_burningdog
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
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.

Last edited by tm_burningdog; 06-10-2004 at 01:50 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache/PHP - can't write file Influx Linux - Software 3 10-23-2005 10:50 PM
Apache/PHP can't write to /tmp dir. Niels@debian Linux - Software 2 05-25-2005 03:10 PM
Sensors - cpu temp, etc - Write this rc* file, which one? xodustrance Linux - Software 2 04-25-2004 08:30 PM
php script can not write text file lemotion Linux - Newbie 5 04-20-2004 10:14 PM
How to write C programs that look the BOIS (eg temp. fan.). geoffl Programming 1 08-15-2003 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration