note 29082 deleted from function.show-source by aidan

From: Date: Sun, 26 Sep 2004 14:10:59 +0000
Subject: note 29082 deleted from function.show-source by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77397@lists.php.net to get a copy of this message
Note Submitter: toppi at kacke dot de ---- This one will work here <?php ob_start(); // Show source of file show_source ( 'dupes.php' ); $contents = ob_get_contents(); ob_end_clean(); $contents = explode('<br>', $contents); foreach ($contents as $line){ $i++ ; $line_number = $i.str_repeat("&nbsp;",6-strlen($i)); echo '<font color="cccccc"><li>'.$line_number.'</li></font> '.$line.'<br>'; } ?>

« previous php.notes (#77397) next »