show_source()
| From: | �ystein H�land | Date: | Thu, 08 Aug 2002 18:59:37 +0000 |
| Subject: | show_source() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111716@lists.php.net to get a copy of this message | ||
I use the following script found at php.net:
<html><body><ol><li>
<?
ob_start();
show_source( "THE_FILE!" );
$t = ob_get_contents();
ob_end_clean();
echo ereg_replace( "<br />" , "</li><li>" , $t );
?>
</li></ol></body></html>
Since the ereg_replace don't work with my php-code i just do
echo $t;
instead.
What I want is to do something like this:
echo ereg_replace( "\r\n" , "</li><li>" , $t );
(my files are created in a win2000-environment), but this gives the
linenumber only for the first line. Anyone see a solution to this?
--
~@~~@~~@~~@~~@~~@~~@~
Det svåra tar tid, det
omöjliga något längre tid
Øystein Håland
070 7128931 (mobil)
036 105808 (jobb)
ha@ematte.se
http://ematte.se
http://learn-math.com
~@~~@~~@~~@~~@~~@~~@~