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 12-21-2004, 12:56 AM   #1
Toni
Confirmed User
 
Toni's Avatar
 
Join Date: Oct 2001
Posts: 2,697
Is there a tool that ...

Is there a tool that can mix/reorder lines of text into a different/random order, for example, I enter:

URL A
URL B
URL C
URL D
URL E
URL F
etc.

Output:
URL C
URL F
URL E
URL A
URL D
URL B
etc.

Is there a program that can do that with hundreds or thousand lines of text/URL's ?
__________________


$25-$50 Per Signup, 60%-70% Rev Share, 125+ Sites, Exclusive Sites, tons of free content
70,000+ FHG's, Free Domain Hosting, 10,000+ Hosted FLV's - Need Live Cams? Check out ItsLive.com
Fetish Hits paying affiliates since 2001 - Every time on time!
Toni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 01:00 AM   #2
chase
Confirmed User
 
Join Date: Jul 2004
Location: Tampa Bay
Posts: 6,019
couldn't Excel do some random order thing?
(I don't know shit about it, but I wondered that before myself.)
__________________
Need Hosting? Reality Check Network services me purrrfectly!
chase is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 01:07 AM   #3
Trixxxia
Confirmed User
 
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
Personally - I would do it with excel - say number 1 to 100 on another column - copy and past it throughout the column until the end of your list - then take both columns and Data Sort by the numbered column - every hundred urls will be following the order

Last edited by Trixxxia; 12-21-2004 at 01:09 AM..
Trixxxia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 01:18 AM   #4
emthree
Dialer Kingpin
 
Join Date: Jun 2003
Location: New York
Posts: 10,816
You know ... I needed to have that done a couple of years back, but I cannot remember why.

But anyway, how many lines are you looking to have mixed? What's the purpose?
__________________

Sell Patches & Pills
emthree is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 01:26 AM   #5
Toni
Confirmed User
 
Toni's Avatar
 
Join Date: Oct 2001
Posts: 2,697
Quote:
Originally posted by emthree
You know ... I needed to have that done a couple of years back, but I cannot remember why.

But anyway, how many lines are you looking to have mixed? What's the purpose?
It is a list of free hosted galleries of various sponsors that should be included in our TGP?s. For example we have 500 Category A galleries of 10 sponsors I want to mix that list so the script doesn?t show first all galleries of one sponsor, then the next etc. It can be done by hand but it takes extremely long for 20k+ galleries.
__________________


$25-$50 Per Signup, 60%-70% Rev Share, 125+ Sites, Exclusive Sites, tons of free content
70,000+ FHG's, Free Domain Hosting, 10,000+ Hosted FLV's - Need Live Cams? Check out ItsLive.com
Fetish Hits paying affiliates since 2001 - Every time on time!
Toni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 01:34 AM   #6
Toni
Confirmed User
 
Toni's Avatar
 
Join Date: Oct 2001
Posts: 2,697
I just found something that works for anybody interested:
http://www.bykeyword.com/downloads/s...load-8134.html

The only thing that sucks is that the export list creates a empty row between each text line.
__________________


$25-$50 Per Signup, 60%-70% Rev Share, 125+ Sites, Exclusive Sites, tons of free content
70,000+ FHG's, Free Domain Hosting, 10,000+ Hosted FLV's - Need Live Cams? Check out ItsLive.com
Fetish Hits paying affiliates since 2001 - Every time on time!
Toni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 01:53 AM   #7
Toni
Confirmed User
 
Toni's Avatar
 
Join Date: Oct 2001
Posts: 2,697
With Text Pipe I removed the blank lines and I have a perfect list!

Should be a big help for other tgp owners too!
__________________


$25-$50 Per Signup, 60%-70% Rev Share, 125+ Sites, Exclusive Sites, tons of free content
70,000+ FHG's, Free Domain Hosting, 10,000+ Hosted FLV's - Need Live Cams? Check out ItsLive.com
Fetish Hits paying affiliates since 2001 - Every time on time!
Toni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 02:43 AM   #8
NastyJack
Registered User
 
Join Date: Dec 2002
Posts: 1,291
place this in the same dir as the file you want to shuffle and change $textfile to the filename of the list.

shuffle.php

PHP Code:
<?php

$textfile 
"urls.txt";

$data file($textfile);

shuffle($data);
shuffle($data);
shuffle($data);

$fp fopen($textfile"w+");
foreach(
$data as $line) {
  
fwrite($fptrim($data) . "\r\n");
}
fclose($fp);

?>
NastyJack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 02:46 AM   #9
SilverTab
Confirmed User
 
Join Date: Nov 2001
Location: MTL
Posts: 5,060
Quote:
Originally posted by chase
couldn't Excel do some random order thing?
(I don't know shit about it, but I wondered that before myself.)
excel would probably do it, but if I remember well, the max number of rows for an exel sheet is the size of an integer (65535 )
__________________
mmm my sig was too big... no more cool animation
but hey still! need php? ICQ: 94586959
SilverTab is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 02:47 AM   #10
ytcracker
stc is the greatest
 
ytcracker's Avatar
 
Join Date: Dec 2002
Location: rip sean murray
Posts: 12,403
Quote:
Originally posted by NastyJack
place this in the same dir as the file you want to shuffle and change $textfile to the filename of the list.

shuffle.php

PHP Code:
<?php

$textfile 
"urls.txt";

$data file($textfile);

shuffle($data);
shuffle($data);
shuffle($data);

$fp fopen($textfile"w+");
foreach(
$data as $line) {
  
fwrite($fptrim($data) . "\r\n");
}
fclose($fp);

?>
haha123 should be left squiggle bracket
__________________
www.ytcracker.com | www.digitalgangster.com
i love you
ytcracker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 02:49 AM   #11
NastyJack
Registered User
 
Join Date: Dec 2002
Posts: 1,291
Quote:
Originally posted by ytcracker
haha123 should be left squiggle bracket
yes it should be, thanks for pointing that out. i was too lazy to edit the thread to say that.
NastyJack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2004, 03:05 AM   #12
PHPdude
Confirmed User
 
Join Date: Aug 2004
Posts: 1,164
Man couldnt you have writen that yourself.
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, you may use a 624x80 instead of a 120x60. Let me repeat... A 120 x 60 button and no more that 3 lines of DEFAULT SIZE AND COLOR text.
PHPdude 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.