Re: A Strange Problem
| From: | Daniel Brown | Date: | Thu, 20 Jun 2013 18:22:22 +0000 |
| Subject: | Re: A Strange Problem | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321436@lists.php.net to get a copy of this message | ||
On Thu, Jun 20, 2013 at 2:14 PM, Tedd Sperling <tedd.sperling@gmail.com> wrote:
> Bastien:
>
> You were right on - by changing the directory to what I needed, everything works.
>
> My follow-up question is "Why?"
>
> I have *never* had to specifically tell any script to chdir() -- why with that one?
Sounds like either a chroot or virtual environment (such as,
execution of the script in a separate directory) issue. Check the
output of this:
<?php
if (phpversion() >= 5.3) {
echo __DIR__.PHP_EOL;
} else {
echo getcwd().PHP_EOL;
}
?>
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/