Re: A Strange Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 20, 2013, at 7:12 PM, Stuart Dallas <stuart@xxxxxxxx> wrote:
> Whatever the reason for this, I'd recommend you always specify a path relative to the current script.
> 
> In PHP 5.3+:
> 
> $fcontents = file(__DIR__.'/docs/admin-email.txt');
> 
> Prior to 5.3:
> 
> $fcontents = file(dirname(__FILE__).'/docs/admin-email.txt');
> 
> -Stuart

-Stuart:

Thats' an excellent idea -- I will do that.

I just don't know why after so many years this problem came up -- I never experienced it before -- AND when I am really up against it.

Maybe someone smarter than me (open to many) will explain why it happened.

Cheers,

tedd

_____________________
tedd@xxxxxxxxxxxx
http://sperling.com

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






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux