Rotating and Double Refresh Scripts Problem. Need Help

3 replies
Hi,

I have a problem about rotating script that combain with double refresh scripts, so i need your help, please.

My rotating script (that will rotate 3 offers) is
<body>

<?php

$offers = array(
"offer1 dot html",
"offer2 dot html",
"offer3 dot html"
);
shuffle($offers);
include($offers[0]);
?>

</body>
</html>

And my offer1 dot html (offer2 dot html and offer3 dot html similar) is

<body>

<?php

{

echo "<meta http-equiv=\"refresh\" content=\"0;url=abc dot php\">";

}

?>



</body>
</html>
and abc dot php is

<?php

$referer = $_SERVER['HTTP_REFERER'];

if($referer == "")

{

echo "<meta http-equiv=\"refresh\" content=\"0;url=myaffiliatelink\">";

}

?>

when i click it, it not go to my aff. site, just blank screen.:confused::confused:

What's wrong with that scripts?. Need your help, please.

thanks

sindyjk
#double #problem #refresh #rotating #scripts
  • Profile picture of the author rtrotter
    I think you need to place in head block not body block of page. You can test if the meta tag is being set correctly using get_meta_tags(abs dot php).

    The reason you get blank page is nothing specified if $referer != "", unless there is more to that page that you did not show.

    Rodney
    Signature

    Ping All Your Feed On Auto-Pilot
    www.kping.com

    {{ DiscussionBoard.errors[875167].message }}
  • Profile picture of the author Bamma
    I find using header much more convenient
    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: h ttp :// affiliatelink");
    exit();
    ?>
    {{ DiscussionBoard.errors[876657].message }}
    • Profile picture of the author sindyjk
      Originally Posted by Bamma View Post

      I find using header much more convenient
      <?php
      header("HTTP/1.1 301 Moved Permanently");
      header("Location: h ttp :// affiliatelink");
      exit();
      ?>
      Bamma,

      will that way hide my keywords from AM?
      {{ DiscussionBoard.errors[877889].message }}

Trending Topics