Dear all I have the following piece of script that makes a directory and uploads an image to my server.
The problem I am having is that when I ftp to the folders I am unable to change the permissions or delete the images. If you see the second line 0777 should this set the CHMOD of the directory to 777 yet in reality what it is doing is setting it to 755. The reason I need to modify the directories is that I have to download the given image and resize it to my needs and upload it back but allas it isnt working can anyone help?
if ($file1_name != "") {
mkdir ("uploads/$time", 0777);
copy("$file1", "uploads/$time/$file1_name");
$pic = $url."/uploads/".$time."/".$file1_name;
}