/ Published in: Other
Expand |
Embed | Plain Text
<p>Code:</p> <?php // Get the HTML source of a URL. $lines = file ('test.php'); // Loop through our array, show html source as html source; and line numbers too. foreach ($lines as $line_num => $line) { echo "Line <b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n"; } ?>
You need to login to post a comment.
