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
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.
2 matches
Mail list logo