ini_set('max_execution_time', 60);
after
function open( $filename, $mode )
{
But the same did not work for getimagesize(). And some of the sites are coming up as connection refused (for both). Would connection refused be because of an error on my server or theirs?