Quick Search:
 
 PHP Code: Display html source with line numbers Jump to:  
Category: >> PHP Code >> Display html source with line numbers  

<< lastnext >>

Snippet Name: Display html source with line numbers

Description: Great way to show the html source of a page complete with line numbers.

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 01st, 2009

<?PHP
 
// Get the HTML source of google
$count = FILE ('http://www.google.com/'); 
// Loop through our array
FOREACH ($count AS $line_num => $line) 
{
ECHO "Line #{$line_num} : " . HTMLSPECIALCHARS($line) . "<br>\n";
}
 
?>


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org