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 ...
-
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");
}
?>
-
is there no easier way to do this?
very complex for me!
please guide me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules