Re: CLI Current Directory
| From: | Adam Voigt | Date: | Tue, 04 Mar 2003 14:30:01 +0000 |
| Subject: | Re: CLI Current Directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138112@lists.php.net to get a copy of this message | ||
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 "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.
Anyone?
Thanks.
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc