War Room

Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Ad Networks - CPA, CPM, CPL - Millionaire Makers..

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 10-31-2009, 12:56 AM   #1
Warrior Member
 
Join Date: Feb 2009
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I make this DMR rotation script visit the URL's in sequential order?

How can I make this DMR rotation script visit the URL's in sequential order? I really need this script to run in sequential order through the URL's in links.txt file.

I don't need the script to remember users/cookies/ip's/sessions. I just need the script to run in sequential order in a loop regardless of who the visiting user is.


link1, link2 ,link3 , link4, link5, link1, link2, link3, link4, new visitor >>> link5 , link 1, link2 , link3, new visitor >>> link4, link5, link1, new visitor >>>, link 2 etc.


index.php
PHP Code:
<?php
echo "<meta http-equiv=\"refresh\" content=\"0;url=second.php\">";
?>
second.php
PHP Code:
<?php

// Open our links file
$sites array_map("trim"file("links.txt"));

// Grab a random URL
$redirect $sites[array_rand($sites)];

$referer $_SERVER['HTTP_REFERER']; if($referer == "")

// Redirect to our Random URL
echo "<meta http-equiv=\"refresh\"content=\"0;url=http://".$redirect."\">"
  
else
{
// Referrer is not blank send traffic to our homepage
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.microsoft.com\">";  
}
?>
gotcha is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Ad Networks - CPA, CPM, CPL - Millionaire Makers..

Tags
dmr, make, rotation, script

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 07:29 AM.