You are here: Re: Why is dirname(__FILE__) returning different results? « PHP Programming Language « IT news, forums, messages
Re: Why is dirname(__FILE__) returning different results?

Posted by fel on 06/25/07 18:43

On Jun 23, 11:12 am, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.com> wrote:
> Hi,
>
> On my php 4.4.4 environment, the call
>
> $dir = dirname(__FILE__);
>
> returns the full path of the directory. However, when I upload the
> above code to my hosting company's server, the call returns ".". What
> is the setting to force dirname(__FILE__) to alwasy return a full path
> instead of a "."?
>
> Thanks, - Dave

realpath(dirname(__FILE__))

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация