|
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]
|