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 04-16-2005, 09:09 PM   #1
Alex
So Fucking Banned (YEA!!)
 
Join Date: Jun 2004
Posts: 10,963
How To take one HTML file and duplicate it into 20 copies all named differently?

Is there something that does this?

I want to take an any.html file
Duplicate it and have it renamed to freeporn.html teenporn.html freesex.html etc etc, all names taht i insert.
__________________
Care about me?
Who?
Me!
Who?
Alex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 09:12 PM   #2
BV
wtf
 
BV's Avatar
 
Industry Role:
Join Date: Sep 2001
Location: Bikini State, FL USA
Posts: 10,914
chamelion submitter
BV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 09:20 PM   #3
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
how do you want it to create the new names ? random? or from a text file?
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 09:23 PM   #4
Alex
So Fucking Banned (YEA!!)
 
Join Date: Jun 2004
Posts: 10,963
Quote:
Originally Posted by BV
chamelion submitter
Something that is more specific for the certain job that i need?
Chameleon is also a submitter
__________________
Care about me?
Who?
Me!
Who?
Alex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 09:29 PM   #5
Alex
So Fucking Banned (YEA!!)
 
Join Date: Jun 2004
Posts: 10,963
Quote:
Originally Posted by SmokeyTheBear
how do you want it to create the new names ? random? or from a text file?

from a text file
__________________
Care about me?
Who?
Me!
Who?
Alex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 09:31 PM   #6
DamageX
Marketing & Strategy
 
DamageX's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
Quote:
Originally Posted by Alex
Something that is more specific for the certain job that i need?
Chameleon is also a submitter
I had a pal hack me a handy little script for this, one single file and easily modifiable, about three years ago. Unfortunately, this was also about 5-6 HDD crashes ago... I'll look for it on my backup CD's, if I find it I'll let you know.
__________________
Whitehat is for chumps

If you don't do it, somebody else will - true story!
DamageX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 09:32 PM   #7
DateDoc
Outside looking in.
 
DateDoc's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: To Hell You Ride
Posts: 14,243
in the time you have waited for an answer you could have used that awesome feature we all have. Copy and paste!!!
__________________
DateDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 09:34 PM   #8
Alex
So Fucking Banned (YEA!!)
 
Join Date: Jun 2004
Posts: 10,963
Quote:
Originally Posted by BusterPorn
in the time you have waited for an answer you could have used that awesome feature we all have. Copy and paste!!!
Does copy and paste rename too?
__________________
Care about me?
Who?
Me!
Who?
Alex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 09:59 PM   #9
BV
wtf
 
BV's Avatar
 
Industry Role:
Join Date: Sep 2001
Location: Bikini State, FL USA
Posts: 10,914
Quote:
Originally Posted by Alex
Something that is more specific for the certain job that i need?
Chameleon is also a submitter
I know Cham Sub is a submitter, but it will also do what you need.

I've thoroughly looked and could not find this in an off the shelf script anywhere.


Make a text file with the names you want the copied pages and CS will duplicate and rename them accordingly.
BV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 10:06 PM   #10
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
I could create something for you if you want.. I might have something for that hold on..
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 10:08 PM   #11
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Wouldnt you rather it be a little random , ? Like maybe make every file the same but the title of the page be the title of the name of the file ?
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 10:09 PM   #12
DateDoc
Outside looking in.
 
DateDoc's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: To Hell You Ride
Posts: 14,243
Quote:
Originally Posted by Alex
Does copy and paste rename too?
In the hour this thread has been running I hope you could have typed out 20 renames! If not try typing class.
__________________
DateDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 11:04 PM   #13
Alex
So Fucking Banned (YEA!!)
 
Join Date: Jun 2004
Posts: 10,963
Quote:
Originally Posted by SmokeyTheBear
Wouldnt you rather it be a little random , ? Like maybe make every file the same but the title of the page be the title of the name of the file ?
No i need to have 20 different html files duplicated into 20 more of the same file but with names. It sounds confusing but the reason i need the names to be chosen cannot change.
__________________
Care about me?
Who?
Me!
Who?
Alex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 11:23 PM   #14
DamageX
Marketing & Strategy
 
DamageX's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
Got it! Check your ICQ.
__________________
Whitehat is for chumps

If you don't do it, somebody else will - true story!
DamageX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 12:19 AM   #15
prodiac
Confirmed User
 
Industry Role:
Join Date: Sep 2003
Location: amerinoc.com
Posts: 419
Code:
#!/usr/local/bin/perl
 
$file_orig = "_somefile.html";
$files = "filename_list.txt 
 
open (FILE, $files);      
@allfiles=<FILE>;     
close(FILE);   
 
foreach $name (@allfiles) {
 chop($name);
 system("/bin/cp $file_orig $name");
 }
 
exit;
prodiac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 01:07 AM   #16
austinth
Confirmed User
 
Join Date: Jul 2002
Location: Fantasy Island
Posts: 1,770
do a search on google for a doorway page generator.
austinth is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 01:15 AM   #17
CDSmith
Too lazy to set a custom title
 
CDSmith's Avatar
 
Industry Role:
Join Date: May 2001
Location: My network is hosted at TECHIEMEDIA.net ...Wait, you meant where am *I* located at? Oh... okay, I'm in Winnipeg, Canada. Oops. :)
Posts: 51,460
Quote:
Originally Posted by BusterPorn
In the hour this thread has been running I hope you could have typed out 20 renames! If not try typing class.
Was thinking the same thing as I read this thread.I use a little known technique called "save as"

Seriously, I could have had 20 copies of the same page renamed and saved in fifteen minutes at the most, including a pee break.
__________________
Promote Wildmatch, ImLive, Sexier.com, and more!!

ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!!

Put some PUSSYCA$H in your pocket.
ICQ me at: 31024634
CDSmith is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 01:36 AM   #18
prodiac
Confirmed User
 
Industry Role:
Join Date: Sep 2003
Location: amerinoc.com
Posts: 419
Quote:
Originally Posted by prodiac
Code:
#!/usr/local/bin/perl
 
$file_orig = "_somefile.html";
$files = "filename_list.txt 
 
open (FILE, $files);      
@allfiles=<FILE>;     
close(FILE);   
 
foreach $name (@allfiles) {
 chop($name);
 system("/bin/cp $file_orig $name");
 }
 
exit;
There was a mistake on the following line:

Code:
$files = "filename_list.txt
It should be:

Code:
$files = "filename_list.txt";
prodiac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 05:27 AM   #19
sumphatpimp
Confirmed User
 
Join Date: Aug 2002
Posts: 5,235
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20

done!
send money paypal now!
sumphatpimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 05:37 AM   #20
Tipsy
Confirmed User
 
Join Date: Jul 2001
Location: See sig
Posts: 6,989
I made a little VB script once that duplicated a file and renamed it using 1000's of different keyword combos. It made me a LOT of dialler mins back in the free napster days

Hmmm...can't find it now though. If it turns up I'll hit you up and send a copy.
__________________
Ignorance is never bliss.
Tipsy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 09:46 AM   #21
~Ray
visit hardlinks.org
 
~Ray's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Las Vegas , Nv >>> [email protected] or icq 94994627 anytime
Posts: 18,362
hit up manuel from oxeo.com , he'll write a script for you very quickly.
his icq is 20214646


~Ray
~Ray is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 09:48 AM   #22
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
it'd probably be easier to use .htaccess ... that way when you need to edit it, you wont be having to change 20 different files, creating symbolic links would work well too
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 09:54 AM   #23
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
if you haven't found anything yet, beep me on ICQ at 5702550, I think I have a little mass/renaming tool in VB that could work...I'll go look for it now...
__________________
Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 10:04 AM   #24
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
if a redirect is fine, you can do this in .htaccess
Code:
Redirect /folder/faggot.html http://www.mydomain.com/folder/mainpage.html
alternatively, you can use mod_rewrite if a server redirection wont work

Last edited by pstation; 04-17-2005 at 10:05 AM..
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 10:14 AM   #25
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,482
Quote:
Originally Posted by prodiac
Code:
#!/usr/local/bin/perl
 
$file_orig = "_somefile.html";
$files = "filename_list.txt 
 
open (FILE, $files);      
@allfiles=<FILE>;     
close(FILE);   
 
foreach $name (@allfiles) {
 chop($name);
 system("/bin/cp $file_orig $name");
 }
 
exit;
And what if you want to edit the text between the TITLE tags on the html page as well, and in php instead of perl?
__________________
seks.ai for sale - ping me
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 10:50 AM   #26
The Sultan Of Smut
Confirmed User
 
The Sultan Of Smut's Avatar
 
Join Date: Dec 2004
Location: Vancouver
Posts: 4,325
Quote:
Originally Posted by Alex
Does copy and paste rename too?
Well yes it does but probably not the way you want it to. So you need a batch file renamer as well. I use this one:

http://hp.vector.co.jp/authors/VA014...lish/FlexRena/
The Sultan Of Smut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 11:15 AM   #27
Alex
So Fucking Banned (YEA!!)
 
Join Date: Jun 2004
Posts: 10,963
Yea i already got what i need.

When you need to name 150 different files into 20 different names time ads up.
Thanks all.
__________________
Care about me?
Who?
Me!
Who?
Alex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 11:21 AM   #28
prodiac
Confirmed User
 
Industry Role:
Join Date: Sep 2003
Location: amerinoc.com
Posts: 419
Quote:
Originally Posted by Naughty
And what if you want to edit the text between the TITLE tags on the html page as well, and in php instead of perl?
It would take me a bit more time than I have right now to get it in PHP, so I modified it a bit in perl ..

in _template.html this will be your original file you start with, The title line needs to be: <title>%%TITLE%%</title>

In the filelist, which I called filename_list.txt, the file needs to look like this:
Code:
someword1.html||Title for someword1 file goes here
someword2.html||Title for someword2 file goes here
someword3.html||Title for someword3 file goes here
And so on ..

Here is the modified script .. going out for the rest of the day right now, didn't test it, but it should work....
Code:
#!/usr/local/bin/perl

$template = "_template.html"; 
$files = "filename_list.txt

open (TPL, $template);  
@tpllines=<TPL>;
close(TPL);

open (FILE, $files);
@allfiles=<FILE>;
close(FILE);

foreach $list (@allfiles) {
 chop($list);
 ($name,$title) = split(/||/, $list);  
 open (NEWFILE, ">${name}");             
  foreach $line (@tpllines) {
   chop($line);
   $line =~ s/%%TITLE%%/$title/;
   print NEWFILE "$line\n";
   }
 close(NEWFILE); 
 }

exit;
prodiac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 11:26 AM   #29
mardigras
Bon temps!
 
Join Date: Feb 2003
Location: down yonder
Posts: 14,194
Only talking 20 files or so and want them named various things rather than sequentially numbered, I would just go for copy & hit Crtl+V 19 times and rename them manually.
__________________
.
mardigras is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2005, 03:05 PM   #30
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,482
Quote:
Originally Posted by prodiac
It would take me a bit more time than I have right now to get it in PHP, so I modified it a bit in perl ..

in _template.html this will be your original file you start with, The title line needs to be: <title>%%TITLE%%</title>

In the filelist, which I called filename_list.txt, the file needs to look like this:
Code:
someword1.html||Title for someword1 file goes here
someword2.html||Title for someword2 file goes here
someword3.html||Title for someword3 file goes here
And so on ..

Here is the modified script .. going out for the rest of the day right now, didn't test it, but it should work....
Code:
#!/usr/local/bin/perl

$template = "_template.html"; 
$files = "filename_list.txt

open (TPL, $template);  
@tpllines=<TPL>;
close(TPL);

open (FILE, $files);
@allfiles=<FILE>;
close(FILE);

foreach $list (@allfiles) {
 chop($list);
 ($name,$title) = split(/||/, $list);  
 open (NEWFILE, ">${name}");             
  foreach $line (@tpllines) {
   chop($line);
   $line =~ s/%%TITLE%%/$title/;
   print NEWFILE "$line\n";
   }
 close(NEWFILE); 
 }

exit;
Nice, I don't need it per se, but I thought it was good to know. Will save it for future reference.

Thanks.
__________________
seks.ai for sale - ping me
Naughty 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.