> Hello Vesselin, > > Tuesday, August 5, 2003, 10:47:53 PM, you wrote: > > VA> Hello. > VA> Here is a patch for the command-line version of PHP which makes it chdir() > VA> to the > VA> script directory just like the web version of PHP does. It also implements > VA> the -C > VA> option which has been a NOOP up to now. > > > See README file of sapi/cli. This won't be changed. Maybe a patch that does > the other way round is ok -> a patch that adds a switch to chdir to the > script.
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__)); Edin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php