![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
|
Easiest Way To Upload 1 File To 5000 Individual Directorys?
Anyone happen to know the answer to this?
I dont feel like FTP'ing into each directory manually and uploading the file LOL Regards, Lee |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Make a FTP script with a loop that goes through an array of FTP IPs/logins.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jul 2002
Posts: 3,103
|
symlink
run a simple shell script that'll create symlinks to your file (so you save on HD space too) would take 5 minutes for a good programmer to do
__________________
![]() Our Programs: StandAhead | IndieBucks | BoyCrushCash | Phoenixxx | EmoProfits | BritishBucks | HunkMoney | LatinoBucks Make $$$ with Gay! Lowest Minimum Payouts in the Business, Perfect Track Record, Amazing Sites |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jul 2002
Posts: 3,103
|
or whip out the good old ghost mouse!
__________________
![]() Our Programs: StandAhead | IndieBucks | BoyCrushCash | Phoenixxx | EmoProfits | BritishBucks | HunkMoney | LatinoBucks Make $$$ with Gay! Lowest Minimum Payouts in the Business, Perfect Track Record, Amazing Sites |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Or ModRewrite if the paths and names are somewhat patterned.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Registered User
Join Date: Nov 2004
Location: Gold Coast, Australia
Posts: 23
|
You could do something this:
1. Upload file to temporary directory. 2. Use the following script: find /base/dir -type d | xargs cp /tmp/dir/file This will copy the file in the temporary directory to any directory under the /base/dir directory. You could do a similar thing with symlink, just make sure not to delete the original and I would suggest using absolute paths. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
|
Quote:
![]() Out of interest though.. Will that copy the files into the sub directory of the initial sub directorys also? domain.com/dir/subdir is where i need them to go not.. domain.com/dir/subdir/subdir Regards, Lee |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jan 2003
Posts: 933
|
<cfdirectory action="LIST"
name="fiveGFolderName" directory="C:\Inetpub\wwwroot\folderOfFiveGs" sort="name asc"> <cfif fiveGFolderName.recordcount> <cfloop query="fiveGFolderName"> <cffile action="UPLOAD" fileField="yourFuckingFile" destination = "C:\Inetpub\wwwroot\folderOfFiveGs\#fiveGFolderNam e.name#\" nameconflict="MAKEUNIQUE" accept ="image/*,application/msword,text/*"> </cfloop> </cfif> ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |