note 40625 deleted from function.readdir by irchtml

From: Date: Wed, 10 Mar 2004 08:09:33 +0000
Subject: note 40625 deleted from function.readdir by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66532@lists.php.net to get a copy of this message
Note Submitter: Alan ---- <? # #get_includes.php # #This trivial little thing reads in all the function files in functions. #Well it will include anything ending in .php apart from itself, itself, itself, itself. . . # $dp = opendir("$DOCUMENT_ROOT/functions"); while ( false !== ($file = readdir($dp))) { if(preg_match("/.php$/", $file) and $file != "get_includes.php") { include $file; } } ?>

« previous php.notes (#66532) next »