Re: Readdir() question
| From: | Jochem Maas | Date: | Fri, 12 Sep 2008 10:57:47 +0000 |
| Subject: | Re: Readdir() question | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279951@lists.php.net to get a copy of this message | ||
Luke schreef:
When I need to do 'filesystem' type things I use MySQL to map all of the files. This offers lot's of versatility in that you could just make a single folder called filesystem and have all of your files in the root of that folder - then use mysql to map virtual folders and structures and such.I don't understand what you mean, can you elaborate?
2008/9/12 Jochem Maas <jochem@iamjochem.com>Nathan Rixham schreef:Jochem Maas wrote:my badNathan Rixham schreef:times :)Stut wrote: maybe this is into coding standards and ethics.. but this may be acceptable: if( !defined('__DIR__') ) { define('__DIR__' , dirname(__FILE__)); } however realistically you'd have to do this in every file and nto just in one includewhich would give an error on second and subsequent define()s yet if(!defined... it's already defined so won't be defined subsequentstill crap thoughyes :-P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php