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-04-2006, 05:29 AM   #1
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
Yo PHP guys.......PHP noob here has a question

<----------------- Noob

How hard is it to snatch up a referring URL...find an affiliate code or ID in that referring URL....and then save that shit to a file or display it on a page?

I'm just learning PHP so if someone could just point me in the right direction.

Sic...you out there dude?
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-04-2006, 05:30 AM   #2
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Very easy.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-04-2006, 05:32 AM   #3
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
send them to like

url.com/index.php?ref=123456

the on the page:
<?php echo $_GET['ref']; ?>
that prints out 123456
so if you want to transfer it to the next page
<a href="http://www.nexturl.com/index.php?ref=<?php echo $_GET['ref']; ?>">
rinse and repeat
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-04-2006, 05:33 AM   #4
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
Quote:
Originally Posted by TeenGodFather
send them to like

url.com/index.php?ref=123456

the on the page:
<?php echo $_GET['ref']; ?>
that prints out 123456
so if you want to transfer it to the next page
<a href="http://www.nexturl.com/index.php?ref=<?php echo $_GET['ref']; ?>">
rinse and repeat
Thanks I appreciate it. Still learning...this helps alot.
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-04-2006, 05:35 AM   #5
ddfGandalf
Confirmed User
 
Join Date: Feb 2005
Location: Budapest, Hungary
Posts: 534
For less typing you could use <?=$_GET['ref']?> instead of <?php echo $_GET['ref'];?>
__________________
ddfGandalf 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.