Re: PEAR Installer on FreeBSD
| From: | Jon Parise | Date: | Fri, 19 Apr 2002 14:45:17 +0000 |
| Subject: | Re: PEAR Installer on FreeBSD | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5678@lists.php.net to get a copy of this message | ||
On Fri, Apr 19, 2002 at 02:47:20PM +0900, Naoki Shima wrote:
> I'd had problem using PEAR Installer on my FreeBSD Box(FreeBSD 4.5-RELEASE
> on Intel).
> I have found out that getcwd() does not work for CGI version of PHP 4.1.2.
> It worked on Apache module version of PHP 4.1.2 though.
> I have used $_ENV['PWD'] instead of getcwd() and it worked fine.
What do you mean by "does not work"? Running this script under
FreeBSD:
<?php
echo $_ENV['PWD'] . "\n";
echo getcwd() . "\n";
?>
yields:
/home/jon/work
/var/www/work.domain.org
Note that /home/jon is a symlink to /var/www/work.domain.org. Perhaps
you are expecting them to be the same?
--
Jon Parise (jon@csh.rit.edu) . Information Technology (2001)
http://www.csh.rit.edu/~jon/ : Computer Science House
Member