Re: [PHP] A Strange Problem

[email protected] (Bastien)
Newsgroups php.general
Message-ID <[email protected]>

Bastien Koert

On 2013-06-20, at 1:57 PM, Tedd Sperling <[email protected]> wrote:

> On Jun 20, 2013, at 1:44 PM, Bastien <[email protected]> wrote:
>> 
>> It sounds like a current working directory issue. Try running a getcwd() in both places to see how they are set
>> 
>> Bastien
> 
> I think you have something, here's the reports:
> 
> Works:
> 
>    /home/content/64/<cut>/html/sdi/tedd/php-mail
> 
> Does NOT work:
> 
>    /home/content/64/<cut>/html/sdi
> 
> The one that does not work should be:
> 
>   /home/content/64/<cut>/html/sdi/includes/
> 
> How do I fix it?
> 
> Cheers,
> 
> tedd
> 
> PS: All <cut>'s were identical.
> 
> 
> _____________________
> [email protected]
> http://sperling.com

Chdir() could work. 

The interesting thing is to see why the two calls start in diff directories.

Thanks ,

Bastien
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.