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