I run a website www.clipbook.us and need to know if something is poss when people click on a link to stumble or digg they get taken to my out.php page which looks like this what i want to know is what could could i add to the out.php file to make it redirect automatically to the link to be pasted here is the entire out.php file <?php include("vars.php"); include("dbconnect.php"); extract($_GET); $eredm = mysql_query("SELECT * FROM diggs WHERE did=$id") or die(mysql_error()); extract(mysql_fetch_array($eredm)); print("<font face=\"arial\" size=2>Please copy and paste this url to your browser<br /></font>"); print("<input type=\"text\" size=\"100\" value=\"$dlink\"></input>"); ?> Code (markup):
Send a Location header instead of printing the url: <?php include("vars.php"); include("dbconnect.php"); extract($_GET); $eredm = mysql_query("SELECT * FROM diggs WHERE did=$id") or die(mysql_error()); extract(mysql_fetch_array($eredm)); header("Location: $dlink"); ?> PHP:
but don't you think that you have to hide the refer ? because i think digg and the others could ban you and the users .. <?php include("vars.php"); include("dbconnect.php"); extract($_GET); $eredm = mysql_query("SELECT * FROM diggs WHERE did=$id") or die(mysql_error()); extract(mysql_fetch_array($eredm)); header("Location: https://passkeeping.com/redir-x.php?r=$dlink"); ?> PHP: This site help you to hide the refer .. https://passkeeping.com/redir-x.php?r= See ya . Amin . Regards .