note 58113 deleted from function.highlight-file by jome

From: Date: Tue, 25 Oct 2005 09:39:14 +0000
Subject: note 58113 deleted from function.highlight-file by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97549@lists.php.net to get a copy of this message
Note Submitter: Reason: already in docs ---- if you are wanting to use this funtion, be carefull because if you dont put like some kinda securit, someone could look at files you dont want them to watch. Do not use it like this: <? if($_GET[source]){ highlight_file($_GET[source]); } ?> use something like this: <? $files_p = array("config.php", "functions.php", "admin.php"); if($_GET[source]){ foreach($files_p as $file){ if(!eregi($file,$_GET[source])) highlight_file($_GET[source]); } } ?>

« previous php.notes (#97549) next »