View Single Post
Old 01-16-2007   #4
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default Re: Sponsor Quetion?

Quote:
Originally Posted by Rcourt64 View Post
WOW thanks, I need to re read it over about another 100 times before it sinks in..LOL. But thanks
The code form the sample page I posted:
If you notice, the url actually being used is redirect.php?site=weekend-jewelry. That is a the redirect script being called and in the call weekend-jewelry is passed in as a variable called "site"

Code:
0)  Only do this if the file opened successfully
  {
    fputs($checkit,$site . "\n");  Write the value in the site variable to the file

The \n at the end of the line is a linefeed so that each
 write creates a new line.  

fclose($checkit);   Close the file
  }
  # redirect to page
  header('location:http://' . $site . '.com');  Since weekend-jewelry was in 
site this will redirect to a url 
of http// + weekend-jewelry + .com (http://weekend-jewelry.com)
?>
Simple simon
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote