note 31468 deleted from ref.dir by didou

From: Date: Thu, 29 May 2003 22:20:28 +0000
Subject: note 31468 deleted from ref.dir by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49348@lists.php.net to get a copy of this message
Note Submitter: sriniram@symonds.net ---- I added the following code to the directory listing code. Explanatory comments inline. ... //running the while loop while ($file = readdir($dir_handle)) { // Protect hidden files from being listed if ($file[0] == '.') { continue; } // Prevent this php script file from showing up if ($file == basename($_SERVER['SCRIPT_FILENAME'])) { continue; } ... } // While ends here

« previous php.notes (#49348) next »