you can handle URLs like files
$fp = fopen('http://yahoo.com', 'r');
the problem is when you get a timeout, and php doesn't handle that well - i'd recommend writing a perl script with a timeout thrown after a few seconds, and have php ask the perl script for the content - i did somethin like this for DNS lookup - later versions of PHP will have good timeouts
hope this helps,
blake