Re: [PHP] A Strange Problem

[email protected] (Tedd Sperling)
Newsgroups php.general
Message-ID <[email protected]>
Daniel:

I placed it at root and it reports:

/home/content/64/<cut>/html/sdi

That's the same path that had problems.

tedd

_____________________
[email protected]
http://sperling.com





On Jun 20, 2013, at 2:22 PM, Daniel Brown <[email protected]> wrote:

> On Thu, Jun 20, 2013 at 2:14 PM, Tedd Sperling <[email protected]> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.