Need Solution For Uploading file to Multiple Directories

4 replies
I have a php file that I want to upload to multiple directories on my server.

what I want to do is upload myfile.php into directories
Folder1
Folder2
Folder3
etc.

I actually have about 250 folders I need to upload this to that are in my public_html

I really don't want to have to ftp the file to each directory one at a time,
how can I do it all at once? Thanks in advance.

George
#directories #file #multiple #solution #uploading
  • Profile picture of the author Bruce Hearder
    About 12-18 months ago, I say a posting somewhere of a program that did something like this..

    I've tried to find it, but alas, no success.

    Trying doing some Google searches and you might strike gold..

    Take care, and sorry about the lack of a solution for you

    Bruce
    {{ DiscussionBoard.errors[458580].message }}
  • Profile picture of the author coolhobo
    Hi George,

    From what I understand about FTP you will need to use a tool or a script of some kind to do the uploads for you as you quite rightly aren't keen to do it yourself.

    I could do this for you if you're interested as I could knock up a quick script I could run from my server to do the upload for you (I have a dedicated server - more control). Failing that you could do a google search for ftp automation, I did find a few useful tools but I'm not able to post urls yet. So I doubt you'll have a problem finding something.


    Regards
    Byron
    {{ DiscussionBoard.errors[459333].message }}
  • Profile picture of the author John Rowe
    George, consider using a macro.
    {{ DiscussionBoard.errors[597256].message }}
  • Profile picture of the author harrisunderwork
    Upload script at once place and run a shell script to copy to all folders. Will save ur bandwidth and will be fast too.
    Signature
    {{ DiscussionBoard.errors[601039].message }}

Trending Topics