On 2013-06-20, at 1:39 PM, Tedd Sperling <t...@sperling.com> wrote:

> Hi gang:
> 
> I have a very strange problem.
> 
> I can use this statement in one folder:
> 
>    $fcontents = file('docs/admin-email.txt');
> 
> But in a different folder with an exact path having 'docs/admin-email.txt', I 
> get:
> 
> Warning: file(/docs/admin-email.txt) [function.file]: failed to open stream: 
> No such file or directory in <cut> on line 83
> 
> This has got me really puzzled.
> 
> I have confirmed these are the exact same folders and files, except only in 
> two different places on the server. Both are one level down from root.
> 
> Any ideas as to what is going on?
> 
> Cheers,
> 
> tedd

It sounds like a current working directory issue. Try running a getcwd() in 
both places to see how they are set

Bastien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to