snippet library logo
in category
PHP / Misc / Show Source in Color
Snippet details
ID: 476
Viewed: 1843
Added: 2002-09-10
Version: php v4.1+
Sorry no demo

User Rated at: 4 Stars
Rate This:
Snippets in this catagory         
Show Printable Version
This little script will let you show the source code, of any PHP script, in color and it will also have line numbers on the left. This is good for those people that don't have the opportunity to use .phps extension do to the fact that their server is not running php as a module.

General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown

<!---Head--->
none

<!---Body--->


<h1>Show source</h1>
<ol><li>
<?
    ob_start
();
    
show_source"file.php" );
    
$t ob_get_contents();
    
ob_end_clean();
    echo 
ereg_replace"<br />" "</li><li>" $t );
?>
</li></ol>




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.