Re: Upload is still not working

From: Date: Mon, 22 Nov 2004 05:54:28 +0000
Subject: Re: Upload is still not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202645@lists.php.net to get a copy of this message
On Monday 22 November 2004 12:14, Michael Leung wrote: > I have some problems for upload file script. The script generated a > lot of permission denied error msg. I have changed the upload dir and > its parent dir into 777. I am quite sure I did the permission settings > right. > > I have attached the error msg and my testing source code with this email > Warning: move_uploaded_file(upload_files/Blue hills.jpg) > [function.move-uploaded-file]: failed to open stream: Permission > denied in /var/www/html/simple_upload.php on line 47 Add the following lines to the top of your code and us show the output of: if (is_dir('upload_files')) { echo ('upload_files is valid a directory'); } else { echo ('upload_files is NOT a directory'); } if (is_writeable('upload_files')) { echo ('I am able to write to upload_files'); } else { echo ('I am NOT able to write to upload_files'); } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Marriage is not merely sharing the fettucine, but sharing the burden of finding the fettucine restaurant in the first place. -- Calvin Trillin */

« previous php.general (#202645) next »