Quote:
Originally Posted by Rcourt64
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