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 10-29-2009, 07:27 PM   #1
Pornwolf
Drunk and Unruly
 
Pornwolf's Avatar
 
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
Hey PHP Experts! Anyone have a php 301 or 302 redirect script that passes subids?

I know this is probably one of the most basic PHP scripts in the world, but I know jack shit about coding php.

Does anyone have the code to do a basic redirect page that can take the keyword/subid from the url and pass it on to the sponsor page?

For example: http://www.landingpage.com/index.php?subid=GFY

301 or 302 redirects

Then passes the subid GFY on to http://www.magacashbucks.com/promo.php?subid=GFY.
__________________
I've trusted my sites to them for over a decade...

Webair, bitches.
Pornwolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 07:31 PM   #2
jMEGA
Confirmed User
 
Join Date: Oct 2005
Location: St. Louis, MO
Posts: 671
see this page:

http://us.php.net/manual/en/function.header.php
__________________
Design | SEO | Photo / Video Editing
( ICQ 49354667 )
jMEGA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 07:37 PM   #3
Pornwolf
Drunk and Unruly
 
Pornwolf's Avatar
 
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
That's great Mega, I will check that out and learn how to do other stuff like make a double refresh to hide the referring page.

But, I need this script right now. I don't have a ton of time for a tutorial unfortunately.
__________________
I've trusted my sites to them for over a decade...

Webair, bitches.
Pornwolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 08:02 PM   #4
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Quote:
Originally Posted by Pornwolf View Post
That's great Mega, I will check that out and learn how to do other stuff like make a double refresh to hide the referring page.

But, I need this script right now. I don't have a ton of time for a tutorial unfortunately.
In the time it took you to write that reply you could have taken a look at that page and written the script yourself
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 08:05 PM   #5
Pornwolf
Drunk and Unruly
 
Pornwolf's Avatar
 
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
I did.

<?php
$id = $_GET['id'];
$referer = $_SERVER['HTTP_REFERER'];

if($referer == "") {
header("Location: http://www.yoursponsorlnk.com/index.php?sub=$id");
}
?>


Just in case anyone does a search and comes across this page while looking for a code like it here it is. Enjoy.
__________________
I've trusted my sites to them for over a decade...

Webair, bitches.
Pornwolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 10:21 PM   #6
Phil
Confirmed User
 
Phil's Avatar
 
Join Date: Jan 2004
Posts: 7,659
bookmarked
__________________
Ask Phil
Phil is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 10:35 PM   #7
Iron Fist
Too lazy to set a custom title
 
Join Date: Dec 2006
Posts: 23,400
Why you guys do this in php and not .htaccess is beyond me... i'm sure your server is crying right now.
__________________
i like waffles
Iron Fist 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.