note 50387 deleted from function.highlight-file by nlopess

From: Date: Sat, 26 Feb 2005 20:08:01 +0000
Subject: note 50387 deleted from function.highlight-file by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-85593@lists.php.net to get a copy of this message
Note Submitter: rz at daimi dot au dot dk Reason: bad code ---- 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

« previous php.notes (#85593) next »