CLI Current Directory
| From: | Adam Voigt | Date: | Tue, 04 Mar 2003 14:26:47 +0000 |
| Subject: | CLI Current Directory | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138111@lists.php.net to get a copy of this message | ||
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
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