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 he
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 permission
umask
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:
>
>
> --
> itoctop
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
5 matches
Mail list logo