It will generate two entries at random, and then it will continue to show the second entry without randomly picking any more.
So on Firefox, Mozilla, and Safari it generates one entry at random, but in IE 7 it generates two entries at random? That is not possible with the given code.
Your code does have a logic error on this line:
$select=rand(0, count($message)+1);
It should be:
$select=rand(0, count($message)-1);
But I would just use [man]array_rand/man, e.g.,
<?php
$filename = 'msg.dat';
$messages = file($filename);
$message = $messages[array_rand($messages)];
echo 'msg=' . $message;
?>