- stream_get_contents: documentation ( source)
- fclose: documentation ( source)
- fopen: documentation ( source)
<?php
$domain = 'http://example.com';
$handle = fopen($domain, 'r');
$content = stream_get_contents($handle);
fclose($handle);
print $content;
?>