$content = file_get_contents('http://www.google.com/'); echo $content; // output // content of url
$content = file_get_contents('/path/to/file.txt'); echo $content; // output // content of file