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

2003-08-07 Thread Marcus Börger
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 no

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

2003-08-07 Thread Vesselin Atanasov
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 sta

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

2003-08-06 Thread Edin Kadribasic
> 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 be