$contents = file_get_contents('banner.txt');
$arr = split('~',$contents);
$numads = count($arr) - 1;
$ad1 = rand(0,$numads);
$ad2 = $ad1;
while ($ad1 == $ad2) {
$ad2 = rand(0,$numads);
}
echo '
';
echo '';
echo '' . $arr[$ad1] . ' | ';
echo '' . $arr[$ad2] . ' | ';
echo '
';
echo '
';
?>