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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-05-2004, 04:15 AM   #1
European Lee
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
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2004, 04:17 AM   #2
Repetitive Monkey
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.
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2004, 04:29 AM   #3
Jay_StandAhead
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
Jay_StandAhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2004, 04:30 AM   #4
Jay_StandAhead
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
Jay_StandAhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2004, 04:33 AM   #5
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Or ModRewrite if the paths and names are somewhat patterned.
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2004, 07:13 AM   #6
kondro
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.
kondro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2004, 07:16 AM   #7
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Quote:
Originally posted by kondro
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.
Thats more along the lines of what i was looking for thanks

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
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2004, 07:42 AM   #8
cfU
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>
cfU is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.