please look at the simple php webpage code below
how can modify my code so that a log file is created on my server which logs each visitor's ip and whether it was successfully redirected to the correct page . something like that.
<?php
$a = $_SERVER['REMOTE_ADDR'];
if ( $a == "117.96.112.122" )
{
header("Location: ad_sams_mobile.html");
return true;
}
else
{
header("Location: ad_other_mobile.html");
return true;
}
?>