note 29082 added to function.show-source

From: Date: Sat, 01 Feb 2003 13:22:05 +0000
Subject: note 29082 added to function.show-source
Groups: php.notes 
Request: Send a blank email to php-notes+get-43255@lists.php.net to get a copy of this message
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>'; } ?> -- http://www.php.net/manual/en/function.show-source.php http://master.php.net/manage/user-notes.php?action=edit+29082 http://master.php.net/manage/user-notes.php?action=delete+29082 http://master.php.net/manage/user-notes.php?action=reject+29082

« previous php.notes (#43255) next »