Created
May 25, 2012 14:02
-
-
Save banksy89/2788310 to your computer and use it in GitHub Desktop.
PHP - Source code of website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getSourceCode ( $website ) | |
{ | |
// The link to the website | |
$code_lines = file ( 'http://webite.com' ); | |
// Loop through the code and build string | |
foreach ( $code_lines as $line => $code ) | |
$lines .= "<strong>{$line}. </strong> " . htmlspecialchars( $code ) . "</ br>\n"; | |
return $lines; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment