Originally posted by codeDV
Try this:
$path = "http://www.site.com/";
$fp = fopen ($path, "r");
$file = fread($fp, filesize($path));
Also have look at the PHP documentation. [/B]
...where you'd see that the [man]filesize[/man] function doesn't work on remote files (for mildly obvious reasons).
The question I have is, is the load stopping because PHP is timing out (exceeding its default 30s)?
Have you tried a more careful approach to fread()ing the file in a loop, such as that given in the user notes [man]fread[/man] page? Not knowing what's different about the old server as opposed to the new server it's a matter of guesswork and trial and error. Maybe it's got some differences of opinion about buffering....??