Re: include *.php

From: Date: Fri, 13 Jul 2001 09:56:08 +0000
Subject: Re: include *.php
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59948@lists.php.net to get a copy of this message
Martin Pedak wrote: > What people think about adding > regular expressions to include() or require() constructions or even > making new language consruction like "import()" that can handle reg. > exp. file includes. So thant you can include(/my/path/*) or > import(/my/path/*.php). You seem to be thinking about something like the import mechanism in Java, aren't you? While this is a nice feature for a compiling language it does not make to much sense for a scripting environment where every included file will hurt runtinme performance and where this 'feature' could be used for attacks by putting additional files in import-directories. If you really still want this feature you can always use readdir() and friends to implement the requested behavior in userland -- Hartmut Holzgraefe hartmut@six.de http://www.six.de +49-711-99091-77

« previous php.dev (#59948) next »