$f = fopen('http://www.example.com', 'rb'); $datos = stream_get_contents($f); fclose($f);