Re: Readdir() question
| From: | Jochem Maas | Date: | Thu, 11 Sep 2008 23:12:46 +0000 |
| Subject: | Re: Readdir() question | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279928@lists.php.net to get a copy of this message | ||
Nathan Rixham schreef:
Jochem Maas wrote:my badNathan Rixham schreef:yet if(!defined... it's already defined so won't be defined subsequent 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
still crap thoughyes :-P