How to get view source of a website with php
<?php // get source of the page http://www.google.com $content = file_get_contents("http://www.google.com"); // convert html tags to entities $source = htmlentities($content); // print the view source echo $source; ?>