show_source question

From: Date: Sat, 14 Sep 2002 07:09:57 +0000
Subject: show_source question
Groups: php.general 
Request: Send a blank email to php-general+get-116357@lists.php.net to get a copy of this message
If I've got the following as my index.php file: <? /* The following code was created by and originates from http://domain.com.. Visit "http://domain.com/copy.php" for more information regarding it's use.. */ require("head.php"); require("main.php"); require("foot.php"); ?> I also have the following line within my foot.php file: echo "<a href=\"/showsource.php?view=".$_SERVER['SCRIPT_NAME']."\">View Source</a>"; If someone uses my showsource.php page to view my php source code, is there any way I can have the comments that are output to have the URLs automatically change into functioning links (a href...) instead of plain orange comment text? I'm not sure if there's a function that does this, but I can't seem to find one in the manual or on google.. Any help would be appreciated.. TIA.. Take care.. peace.. eriol

« previous php.general (#116357) next »