Re: [PHP] Re: directories - again

2007-06-09 Thread Richard Lynch
On Thu, June 7, 2007 7:23 am, Ross wrote: No I want it to be 777 when I upload it not upload it nd have to change it. A) You really should use 775 for directories and 664 for files. B) Just do the chmod right after the move_uploaded_file and call it done. -- Some people have a gift link here.

[PHP] Re: directories - again

2007-06-07 Thread itoctopus
use the function chmod chmod($img_url, 0777); //note the leading 0, it should be there I hope this is what you want: -- itoctopus - http://www.itoctopus.com Ross [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I can make the files now after setting the permission to my

[PHP] Re: directories - again

2007-06-07 Thread Ross
No I want it to be 777 when I upload it not upload it nd have to change it. itoctopus [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] use the function chmod chmod($img_url, 0777); //note the leading 0, it should be there I hope this is what you want: -- itoctopus -

Re: [PHP] Re: directories - again

2007-06-07 Thread Dave Goodchild
umask

[PHP] Re: directories - again

2007-06-07 Thread Al
Here is a function you and others may find helpful. It may need some work, I haven't fully checked it out. DOC_ROOT is $_SERVER['DOCUMENT_ROOT'] ftp_conn() is a simple ftp connection function. /** * dir_perms() * * Checks to see who is dir owner and uses ftp or php to change