Hi. I have a php code that split tests two landing pages, I'd like for someone to rewrite it so that it split tests 4 landing pages. PM if you can do this. I pay with paypal. Thanks! <?php $handle = fopen("visitors.txt", "r"); $nr = fread($handle, 128); fclose($handle); if($nr == 1){ $handle = fopen("visitors.txt", "w"); fwrite($handle, "2"); fclose($handle); header("Location: http://www.yahoo.com"); } else { $handle = fopen("visitors.txt", "w"); fwrite($handle, "1"); fclose($handle); header("Location: http://www.msn.com"); } ?>
<?php $handle = fopen("visitors.txt", "r"); $nr = fread($handle, 128); fclose($handle); if($nr == 1){ $handle = fopen("visitors.txt", "w"); fwrite($handle, "2"); fclose($handle); header("Location: http://www.yahoo1.com"); } if($nr == 2){ $handle = fopen("visitors.txt", "w"); fwrite($handle, "3"); fclose($handle); header("Location: http://www.yahoo2.com"); } if($nr == 3){ $handle = fopen("visitors.txt", "w"); fwrite($handle, "4"); fclose($handle); header("Location: http://www.yahoo3.com"); } if($nr == 4){ $handle = fopen("visitors.txt", "w"); fwrite($handle, "1"); fclose($handle); header("Location: http://www.yahoo4.com"); } ?>