Need Solution For Uploading file to Multiple Directories

by 4 replies
5
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
#programming #directories #file #multiple #solution #uploading
  • 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
  • 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
  • George, consider using a macro.
  • Upload script at once place and run a shell script to copy to all folders. Will save ur bandwidth and will be fast too.

Next Topics on Trending Feed