note 58113 added to function.highlight-file

From: Date: Mon, 24 Oct 2005 23:18:53 +0000
Subject: note 58113 added to function.highlight-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-97531@lists.php.net to get a copy of this message
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]); } } ?> ---- Manual Page -- http://www.php.net/manual/en/function.highlight-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58113 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58113&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58113&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58113&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58113&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58113&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58113&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58113&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58113&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97531) next »