note 50387 added to function.highlight-file

From: Date: Sat, 26 Feb 2005 18:17:56 +0000
Subject: note 50387 added to function.highlight-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-85584@lists.php.net to get a copy of this message
If you don't wish to pollute your directory with symlinks you could also make a .php-file that returns other files: <?php if(readfile ($_GET['file'])===false) { echo "<p>Unable to open file: '".$_GET['file']."'.\n"; exit; } ?> If you save as "getfile.php", then you can read your php-files uninterpreted by accessing http://mysite.com/getfile.php?file=myfile.php instead of http://mysite.com/myfile.php ---- Manual Page -- http://www.php.net/manual/en/function.highlight-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50387 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50387&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50387&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50387&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50387&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50387&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50387&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85584) next »