Menu

Images downloading

Help 2.02
2004-05-04
2004-05-04
  • Jesús Flores

    Jesús Flores - 2004-05-04

    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

     
    • Andreas Kansok

      Andreas Kansok - 2004-05-04

      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.

       
    • Jesús Flores

      Jesús Flores - 2004-05-04

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.