note 36277 added to features.file-upload

From: Date: Fri, 03 Oct 2003 05:49:27 +0000
Subject: note 36277 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-57657@lists.php.net to get a copy of this message
I don't know if anyone else has run into this problem, but it seems that php can't always access the file uploaded to the server. I have a script similar to teh ones listed on this page, and I can sometimes upload fine, but at other times, I get this error message: Warning: fopen(/var/tmp/phpa8aiVI): failed to open stream: Permission denied in /home/lookout/x3/sasa/www/submitpicture.php on line 29 This is actually weird, because the fopen works sometimes, but not always. Although I have no idea how the servers are setup here at Purdue and what permissions they give to the /var/tmp dir, I think it has to do with security permissions. A good idea I think would be to have php save your tmp files in the same dir as your script, that way other locations don't have to be left open for the scripts to access them. ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36277 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36277&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36277&report=yes

« previous php.notes (#57657) next »