+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
BlackHat Scripts & Code Thread, How Do They Do This? in BlackHat SEO Forum; You might want to consider using a smaller range of numbers, maybe just a random 1 or 2. Using a ...
  1. #11
    interpro is offline BlackHat Newbie
    Join Date
    May 2010
    Posts
    5

    Default

    You might want to consider using a smaller range of numbers, maybe just a random 1 or 2. Using a large range such as in your example could lead to sending a lot of traffic to one page with little traffic to the other page.

    Let's say that using numbers up to 1000 may generate several numbers in a row that are below 500 - that would result in all that traffic being sent to the same page. Keep the range of random numbers small so you'll spread the traffic more evenly.

    Try this -

    <?php
    $rand=rand(1,2);
    if($rand==1)
    {
    header("Location: salespage1.html");
    }
    else
    {
    header("Location: salespage2.html");
    }
    ?>

  2. #12
    nottynikki is offline BlackHat Newbie
    Join Date
    Oct 2010
    Posts
    21

    Default

    is there no easier way to do this?
    very complex for me!
    please guide me

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts