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 02-18-2005, 11:49 PM   #1
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
PHP Coders. $30 PayPal first Person who posts...

The code for an easy script.

Details.

I need a script that will build a list of character strings and have these variables.

& = any letter a - z
@ = any number 0 - 9

So if I input &&& it would build a list that looks like.

aaa
aab
aac
aad
...
...
zzz

If I put @&& it would build a list that looks like.

0aa
0ab
0ac
....
....
9zz

Also want to be able to add letters or numbers in combination with the variables. So if I put @89&& it would build a list that looks like.

089aa
089ab
089ac
.....
.....
989zz

Doesn't need a fancy interface just tell me where I need to change inputs in the file and where to specify the output file and that's it.

When you post leave your PayPal addy. As soon as I get it to work I'll send you payment. Feel free to bump

Last edited by Muff; 02-18-2005 at 11:50 PM..
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2005, 11:52 PM   #2
labeledas
Registered User
 
Join Date: Oct 2002
Location: Canada EH?
Posts: 74
you wan tot control how many you get in the list
labeledas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2005, 11:52 PM   #3
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
I should add. The first person who posts working code that does exactly what I need.
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2005, 11:53 PM   #4
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
Quote:
Originally Posted by labeledas
you wan tot control how many you get in the list
No. I want it all
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:13 AM   #5
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
Bump!!!!
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:15 AM   #6
Pete-KT
Workin With The Devil
 
Industry Role:
Join Date: Oct 2004
Location: West Bloomfield, MI
Posts: 51,532
good luck on getting that for 30 I wouldnt waste my time doin that for 30 bucks sorry
Pete-KT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:16 AM   #7
Slap Dot
Confirmed User
 
Slap Dot's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: BASS
Posts: 3,168
Give me a minute
__________________

» AIM: slapdotted
» Skype: slapdot
» ICQ: 190444
Slap Dot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:16 AM   #8
brand0n
been very busy
 
Join Date: Nov 2002
Location: the queen city
Posts: 26,983
lotta code for 30 bucks

bump it to 100
brand0n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:18 AM   #9
Slap Dot
Confirmed User
 
Slap Dot's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: BASS
Posts: 3,168
PHP Code:
<? for($i=65;$i<91;$i++) { ?>
        <a href="<?=$PHP_SELF?>?letter=<?=chr($i)?>"><?=chr($i)?></a>
    <?    } ?>
__________________

» AIM: slapdotted
» Skype: slapdot
» ICQ: 190444
Slap Dot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:18 AM   #10
Pete-KT
Workin With The Devil
 
Industry Role:
Join Date: Oct 2004
Location: West Bloomfield, MI
Posts: 51,532
my thoughts exactly
Pete-KT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:18 AM   #11
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
Quote:
Originally Posted by brand0n
lotta code for 30 bucks

bump it to 100

I keep hearing that. If it's alot of code how long would it take for someone to code it. In all honesty I figured someone would have had it posted by now.
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:20 AM   #12
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
if no one calls on this i could make it. will take about 1h.

and by "any" you mean random, right?
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:21 AM   #13
Slap Dot
Confirmed User
 
Slap Dot's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: BASS
Posts: 3,168
I read your post wrong, I listed code for an easy A-Z index. Haha, sorry. I will add the correct code in a minute
__________________

» AIM: slapdotted
» Skype: slapdot
» ICQ: 190444
Slap Dot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:25 AM   #14
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
Quote:
Originally Posted by holograph
if no one calls on this i could make it. will take about 1h.

and by "any" you mean random, right?
I should have specified the random part. Should build the list in sequence. from A- Z and 0 - 9.

I figured $30 was reasonable guess not. ICQ me if you want to do it 265054864
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:27 AM   #15
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
btw that "any" was confusing, its not any nor random, its from 0 to 9 & from A to Z
by your example
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:28 AM   #16
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Quote:
Originally Posted by Muff
I should have specified the random part. Should build the list in sequence. from A- Z and 0 - 9.

I figured $30 was reasonable guess not. ICQ me if you want to do it 265054864
yup,

ok gotta load my icq 1 min
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:29 AM   #17
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
Quote:
Originally Posted by holograph
btw that "any" was confusing, its not any nor random, its from 0 to 9 & from A to Z
by your example

That's right.
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:31 AM   #18
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
Quote:
Originally Posted by holograph
yup,

ok gotta load my icq 1 min
If slap does he gets it. Add me anyways though, I always have little things like this that need to be done.
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:46 AM   #19
labeledas
Registered User
 
Join Date: Oct 2002
Location: Canada EH?
Posts: 74
just did a quick assesmnet and htis is a pretty complicated request for $30
labeledas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 12:52 AM   #20
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
holographs got it.

Thanks.
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:09 AM   #21
labeledas
Registered User
 
Join Date: Oct 2002
Location: Canada EH?
Posts: 74
damn good job man
labeledas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:19 AM   #22
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
Quote:
Originally Posted by labeledas
damn good job man
Well he's working on it. Didn't realize it was that complicated. It would suck if someone worked on it only to post a few minutes later and get nothing.
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:21 AM   #23
DaveKnell
Registered User
 
Join Date: May 2001
Location: London, England
Posts: 76
Quite a useful exercise: might give this as a problem to people we interview for coding jobs. Here's what I just knocked up - had 10 minutes to kill before the paper shop opens - just in case anyone else is in need of a similar morsel of code. No guarantees: it's worked a couple of times. Could be improved as well - the obvious one would be to have it cope with an arbitrary number of ?s and @s.

Dave

<?
// Template
$template = "?0?@";
$fn = "/tmp/test";
// Work out limit variables
$ll = array();
$ul = array();
$cp = array();
$ix = 0;
for ($i=0; $i<strlen($template); $i++) {
if (substr($template, $i, 1) hahahaha '@') {
$ll[$ix] = 48;
$ul[$ix] = 57;
$cp[$ix++] = $i;
} elseif (substr($template, $i, 1) hahahaha '?') {
$ll[$ix] = 97;
$ul[$ix] = 122;
$cp[$ix++] = $i;
}
}
// Output to file
$fp = fopen($fn, "w");
for ($i0=$ll[0]; $i0<=$ul[0]; $i0++) {
for ($i1=$ll[1]; $i1<=$ul[1]; $i1++) {
for ($i2=$ll[2]; $i2<=$ul[2]; $i2++) {
$template = substr_replace($template, chr($i0), $cp[0], 1);
$template = substr_replace($template, chr($i1), $cp[1], 1);
$template = substr_replace($template, chr($i2), $cp[2], 1);
fwrite($fp, "$template\n");
}
}
}
fclose($fp);
?>
DaveKnell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:22 AM   #24
labeledas
Registered User
 
Join Date: Oct 2002
Location: Canada EH?
Posts: 74
ok so i should still keep workin gon mine then, i just thought holographs was a damn super genious, i am going to get head bbl
labeledas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:23 AM   #25
DaveKnell
Registered User
 
Join Date: May 2001
Location: London, England
Posts: 76
Oh, for fuck's sake, the BBS software appears to have replaced = = (remove the space) with hahahaha in the if.. and elseif.. lines.

--Dave
DaveKnell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:24 AM   #26
Adultnet
Confirmed User
 
Join Date: Sep 2003
Posts: 8,713
yes it take some time to think how to make this..
__________________


TrafficCashGold Paying Webmasters Since 1996!

Awesome Conversions! Fast Weekly Payments! Over 125 Tours!
Adultnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:25 AM   #27
Muff
Confirmed User
 
Join Date: Mar 2001
Location: Toronto
Posts: 1,782
Quote:
Originally Posted by labeledas
ok so i should still keep workin gon mine then, i just thought holographs was a damn super genious, i am going to get head bbl
You can work on it if you want to but holographs got the cash.
Muff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:26 AM   #28
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
Nice work Dave.

broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:29 AM   #29
Adultnet
Confirmed User
 
Join Date: Sep 2003
Posts: 8,713
nice one dave..
__________________


TrafficCashGold Paying Webmasters Since 1996!

Awesome Conversions! Fast Weekly Payments! Over 125 Tours!
Adultnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 01:29 AM   #30
labeledas
Registered User
 
Join Date: Oct 2002
Location: Canada EH?
Posts: 74
good job dave, hats off to you
labeledas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 05:59 AM   #31
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Muff, thanks for the challage, it's a good exersise, my brains needed that.
You've got email.

Dave, pretty close.
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2005, 06:41 AM   #32
spideriux
Registered User
 
spideriux's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 17,227
Good job Dave, but I'm late
__________________
FreeOnes
spideriux 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.