I\'ve got this piece of code, which should fetch the source code of the website.
$homepage = file_get_contents(\'http://homepage.com\'); echo $homepage;
It's because you are printing the source, your browser will interpret that as a webpage. To see the actual code use:
echo htmlspecialchars($homepage);