Re: [PHP] CLI Current Directory

2003-03-04 Thread Adam Voigt
Crap, just noticed, execute php with "-C" and it won't change dir's. On Tue, 2003-03-04 at 09:26, Adam Voigt wrote: Anyone know how you would get the directory a user is in when they call a command line PHP script (assuming it's on the path)? Like if I execute "p

[PHP] CLI Current Directory

2003-03-04 Thread Adam Voigt
Anyone know how you would get the directory a user is in when they call a command line PHP script (assuming it's on the path)? Like if I execute "prog1" and I'm in /usr, and "prog1" is in /usr/local/bin, getcwd() will return /usr/local/bin instead of /usr, I need to reverse this behavior.