Re: Patch for command-line version of PHP
| From: | Edin Kadribasic | Date: | Tue, 05 Aug 2003 21:29:06 +0000 |
| Subject: | Re: Patch for command-line version of PHP | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3740@lists.php.net to get a copy of this message | ||
> 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