#View Source Code on external web page #http://echosystem.fr/snippetV <?php // display source code $lines = file('http://google.com/'); // pick teh url foreach ($lines as $line_num => $line) { // loop thru each line and prepend line numbers echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n"; }