When executing this script, the following message appears on screen before the output: $file = readdir($handle)

$urldata = file_get_contents "http://www.mysite.com/index.php");
echo strip_tags($urldata);

This function is new to me, so is there a way to turn of this message or do I have to add some other statements before calling this function?

Thanks in advance.