![]() |
![]() |
![]() |
||||
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 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
I want to switch out one url on 500 html pages with multiple urls at random, can I?
I have about 500 html pages, they all have the same url throughout them
I have list of alternate urls that I want that one url switched out for, at random so, every html page will have different links, but keeping within the 10 or so links that I provide...and all random is there a script or software that can do that? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: May 2004
Location: 4 8 15 16 23 42
Posts: 4,444
|
Useful File Utilities from http://www.replsoft.com/ is good for batch replacing in html files, but you'd need to put the files in 10 directories/50 files each since it has no randomizing function...but still less work than doing it one by one.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
HOMICIDAL TROLL KILLER
Industry Role:
Join Date: Dec 2004
Location: Sunnybrook Institution for the Criminally Insane
Posts: 20,419
|
im not sure, but heres a bump
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jul 2002
Posts: 1,070
|
Perhaps a perl or php script might help.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
write a random function
$file = "urls.txt"; $fp = file($file); srand((double)microtime()*1000000); $urls = $fp[array_rand($fp)]; echo $urls; could do that and call it from <a href="<?include "random.php"?>"> and if they must be .html pages you could add to .htaccess RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html .inc dont know if thats what you are looking for or not
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
i just did this recently for someone. i'm a but busy tonight but keep in touch and i can help you out if you dont find anything
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Oct 2006
Location: FLA
Posts: 2,538
|
have you tried dreamweavers find and replace..i have done 230 pages.. nothign random though sry
__________________
GooSearch Real Text Ads Without The Drama Coming Back Bigger and Better Then Ever |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
Quote:
i.e. for seo purposes it might be better for them to be randomly placed but stay static
__________________
hatisblack at yahoo.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
wtf
Industry Role:
Join Date: Sep 2001
Location: Bikini State, FL USA
Posts: 10,914
|
you might be able to do a search and replace and replace the said URL with an include tag of some sort. (php. cgi etc..) and let it include your other urls at random.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Sep 2003
Location: Los Begas
Posts: 9,162
|
time machine and includes would be your best bet
![]() I haven't seen any batch search and replace program that will pull randomly from a file so I think you gotta go the script route |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
The Thrilla in Manila
Join Date: Sep 2004
Location: Thurbs' Lagoon, Christmas Island
Posts: 4,785
|
serverside it can be done with a simple command line if ur handy in lin
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
Quote:
I made a custom one that will do all subs etc , just its actually more intensive than jace needs.. mine actually reads each html page and detects the pages main keywords and attempts to match and replace links with other appropriate links
__________________
hatisblack at yahoo.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Quote:
is that server side or desktop app? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
ok i just recoded mine to do what you want icq me
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
server but i could do both
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Join Date: Jul 2005
Posts: 2,339
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
if you still need a solution, and are looking to invest a few bucks, hit me up, icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
...
Join Date: Jan 2006
Location: Maryland ICQ:87038677
Posts: 11,542
|
hope you got it fixed, i said fuck it and went through about 100 pages the other day to replace urls
__________________
... |
![]() |
![]() ![]() ![]() ![]() ![]() |