Re: directories - again
| From: | Ross | Date: | Thu, 07 Jun 2007 12:23:28 +0000 |
| Subject: | Re: directories - again | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256267@lists.php.net to get a copy of this message | ||
No I want it to be 777 when I upload it not upload it nd have to change it.
""itoctopus"" <newsgroup@itoctopus.com> wrote in message
news:DB.58.50146.79DE7664@pb1.pair.com...
> 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"" <ross@aztechost.com> wrote in message
> news:CF.A0.50146.2C7B7664@pb1.pair.com...
>> Hi,
>>
>> I can make the files now after setting the permission to my images folder
>> but I cannot delete the folder or images in it. I have tried unlink and
>> rmdir with no success. Even with filezilla cannot delete it
>>
>>
>> The problem seems to be the images that are set to chmod of 600 and
>> cannot
>> be changed. I upload the file with this
>>
>> move_uploaded_file($_FILES['userfile']['tmp_name'][$i], $img_url)
>>
>> is there a way to set the permissions of the images on upload to anything
>> other than 600?
>>
>> R.