Re: Readdir() question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nathan Rixham schreef:
Jochem Maas wrote:
Nathan Rixham schreef:
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 include

which would give an error on second and subsequent define()s

yet if(!defined... it's already defined so won't be defined subsequent times :)

my bad


still crap though


yes :-P

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux