Im moving to a new server and many images files under the "images" folder are with 600 permission so i cant download them via FTP client, neither i can change this permission settings.
can anybody help?
thanks
regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
Im moving to a new server and many images files under the "images" folder are with 600 permission so i cant download them via FTP client, neither i can change this permission settings.
can anybody help?
thanks
regards
Do something like (note the right path from script to images dir):
$handle = opendir("./images");
while($file = readdir ($handle))
{ if(substr($file,0,1)==".") continue;
chmod("./images/".$file, 0777);
}
closedir($handle);
or use
system ("chmod 0777 ./images/*");
Greetings,
Andreas.
Hello Andreas
Thanks very much for your attention.
Im sure your code will work but ...
I used your code and received the following error message :
Warning: chmod failed: Operation not permitted
using the system chmod i received this one:
Warning: system() has been disabled for security reasons
Can you figure something else?
I was trying to find how to copy the files to my hard disk through PHP. (Whitout having to go one by one)
These image files are of my client and i dont want to tell him to upload them again :-(
They are about 2000
Best regards