I have a very simple script ...
$file = fopen("http://www.ieweb.biz/dev/source.txt", "r");
$contents = fgets($file, 56000);
if (ereg("<title>(.*)</title>", $contents, $out)) {
$title = $out[1];
echo $title;
$break;
}
The source text file is just the source of Yahoo.com's main page.
If I do a ereg on this file it outputs nothing. But if I trim the file to 11720 characters or less (11721 or more is bad), it outputs the Title fine. I have never seen or heard of anything like this.
Any help would be appreciated.
Thank You