![]() |
![]() |
![]() |
||||
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 |
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
Free PHP Scripts
Post your useful php snippets or code here.
This code below, reads from a list of url's in a text file. It uses cookies. The person visiting or clicking your link to this file will see the first url in your text file, then next visit, will see the next.. and so on. Useful for showing different galleries, sending to different sponsors, good with 404 pages, etc. Code:
<?php $domain = 'adultdomain.com'; $list = 'urls.txt'; $cookiedays = 7; /* code below - be careful editing */ $urls = @file($list); $x = count($urls); if( !isset($visited) || $visited >= $x ) $visited = 0; setcookie("visited", ++$visited, time()+($cookiedays*86400), '', ".$domain", 0); header('Location: ' .$urls[$visited]); ?>
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
< ?
phpinfo(); ? > DynaMite ![]()
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Dec 2001
Posts: 735
|
I'd like an "Email this site to your friend" script, without having to pay the $400 to referral blast
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Behind the monitor since 1988
Posts: 1,679
|
Here is a remotely hosted one:
http://www.send-a-friend.net
__________________
Got Web Host providing Website Hosting since 2002. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Behind the monitor since 1988
Posts: 1,679
|
hmm but they aren't taking new accounts..
__________________
Got Web Host providing Website Hosting since 2002. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Dec 2001
Posts: 735
|
Quote:
We are no longer accepting new sign-up requests until further notice. ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Behind the monitor since 1988
Posts: 1,679
|
That sucks
![]()
__________________
Got Web Host providing Website Hosting since 2002. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
Ok I'll be nice for a change.....hold you're breath for a bit....
check back in 30 minutes or so and I'll have it for ya ![]() DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Oct 2001
Location: Montreal
Posts: 3,989
|
PHP Code:
imagename|extension|http://sponsorurl.com for example: advert1|gif|http://www.disney.com ok heres the code: (I coded it so it's not stolen as you may think) PHP Code:
__________________
free sex videos |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
aka K-Man
Industry Role:
Join Date: Oct 2001
Location: The Gutter
Posts: 29,291
|
i know a place in san diego where they will give you almost free PCP, does that help?
![]()
__________________
Crypto HODLr Crypto mining Angel investor |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Oct 2001
Location: Montreal
Posts: 3,989
|
coding PHP on PCP must be hard
![]()
__________________
free sex videos |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
aka K-Man
Industry Role:
Join Date: Oct 2001
Location: The Gutter
Posts: 29,291
|
perhaps your PHP would be really KILLER if coded while on PCP while posting on a BBS about free PHP while on PCP, know what I mean? LMK, OK? TTYL, cuz I'll BBIAB, K?
__________________
Crypto HODLr Crypto mining Angel investor |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Join Date: Apr 2001
Location: Sweden
Posts: 228
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
a gallery checker that i wrote the other day:
PHP Code:
it's kinda slow because it allows up to 5 seconds connection timeout per gallery (you can change it in the code) . i have over 200 galleries in a file and it takes about 3 minutes to check all. the script will output 404, forwarding, or broken gallery links with detailed info, then it will output a list of safe galleries. cheers, Lane
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Industry Role:
Join Date: Oct 2001
Location: Montreal
Posts: 3,989
|
Quote:
![]()
__________________
free sex videos |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Guest
Posts: n/a
|
lane's da man !
imho the only snippet of useful php code is called cjultra, ain't it ? ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: Dec 2001
Posts: 735
|
How about a php counter? Is it possible for it to reset at midnight?
My sextracker, paycounter and foxcounter all say 3 completely different numbers. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Join Date: Dec 2001
Posts: 735
|
Quote:
thanks DynaSpain ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Join Date: Nov 2001
Posts: 830
|
http://www.sexep.com/scripts/index.html - multi domain link spreader
http://www.sexep.com/scripts/redirect.html - basic click redirector |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Join Date: Jan 2001
Location: Amsterdam, the Netherlands
Posts: 590
|
buy a php-book & activate your brains and you'll be your own softwarehouse.
__________________
CELEBRITYSTART.COM |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
Confirmed User
Join Date: Jan 2002
Location: anus fuckin' yo mama
Posts: 1,044
|
PHP Code:
this is a script that I hacked together the other night. it randomly selects galleries and outputs them in a 4x1 table put your url's in "galleries.txt" in this format 12,http://www.galleryurl.com,description I did this so I wouldn't have to update the tgp so often |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 | |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 |
Confirmed User
Join Date: Feb 2002
Posts: 615
|
brujah,
I remember someone asked you about a 4 lines of php code that will allow users to submit their email address and save it to a file or soemthing? You still have that?
__________________
<br> <a href="http://www.sexypassport.com/webmaster/webmaster.php?siteid=752359">Join the Highest Paying FREE AVS. </a><br> <a href="http://nakedpass.com/webmaster/webmaster.php">Naked Pass New FREE Avs Also Pays $20.00 Per FREE Signup!! </a><br> Have you checked out <a href="http://makefuckingmoney.com">Make Fucking Money!</a> Get Paid on FREE Memberships! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Confirmed User
Join Date: Feb 2002
Posts: 100
|
__________________
There is a crack in everything. That's how the light gets in. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 | |
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
Quote:
Make a form like this one <form action="collect.php" method="post"> <input type="text" name="email"><br /> <input type="submit" value="Subscribe"> </form> Then a php file named collect.php like this: Code:
<?php if ( eregi( '^[-!#$%&\\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email ) ) { $fp=fopen('email.txt','a+'); if($fp) { fwrite($fp,"$email\n"); fclose($fp); } } ?> There isn't a lot of validation, but it'll log all the email addresses being entered.
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 |
Confirmed User
Join Date: Feb 2002
Posts: 615
|
Warning: REG_ERANGE in collect.php on line 2
I get this message.. any idea? Chris
__________________
<br> <a href="http://www.sexypassport.com/webmaster/webmaster.php?siteid=752359">Join the Highest Paying FREE AVS. </a><br> <a href="http://nakedpass.com/webmaster/webmaster.php">Naked Pass New FREE Avs Also Pays $20.00 Per FREE Signup!! </a><br> Have you checked out <a href="http://makefuckingmoney.com">Make Fucking Money!</a> Get Paid on FREE Memberships! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#28 |
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
Paste the collect.php part up top again.
the forum was stripping characters out of it.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |