Hi Jason,
 Thank you for your help. This is the output from PHP script:
"upload_files is valid a directoryI am able to write to upload_files
Warning: move_uploaded_file(upload_files/Water lilies.jpg)
[function.move-uploaded-file]: failed to open stream: Permission
denied in /var/www/html/simple_upload.php on line 58

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move '/tmp/phpHuSGRK' to 'upload_files/Water lilies.jpg' in
/var/www/html/simple_upload.php on line 58"

Well, this shows upload_files is writeable. Therefore, it should not
be any error in permission setting issues.

yours,
Michael

On Mon, 22 Nov 2004 13:54:28 +0800, Jason Wong <[EMAIL PROTECTED]> wrote:
> 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
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to