Re: Re: [PHP-DEV] Patch for command-line version of PHP

From: Date: Wed, 06 Aug 2003 00:15:04 +0000
Subject: Re: Re: [PHP-DEV] Patch for command-line version of PHP
Groups: php.internals 
Request: Send a blank email to internals+get-3746@lists.php.net to get a copy of this message
Hello. >No need for that. CLI was specifically designed not to chdir to scripts >directory. If you want that one liner would solve it for you: > >chdir(dirname(__FILE__)); My scripts usually begin with a few require'd libraries, so it makes the code cleaner if it begins with a few require statements not with chdir(). Besides -D is much shorter and saves me some typing. ----------------------------------------------------------------- http://www.novinite.com - Новините от novinite.com

« previous php.internals (#3746) next »