|
Posted by Steve on 12/20/07 01:09
"AnrDaemon" <anrdaemon@freemail.ru> wrote in message
news:216589223.20071220022441@freemail.ru...
> Greetings, Steve.
> In reply to Your message dated Monday, December 17, 2007, 17:19:33,
>
>>> BKdotcom has the right answer. Use $_SERVER['DOCUMENT_ROOT'] to get to
>>> the root directory of your site, then refer to everything form there.
>>>
>>> It works on all sites, and requires no modification the php.ini file.
>
>> you only need to have access to the include path defined by the
>> php.ini...you do *not* need to modify the php.ini file itself. and
>> DOCUMENT_ROOT works great...as long as the resources you're referencing
>> are
>> sub-dirs of that dir.
>
> Even if not, using some predefined and known to be right starting point
> (like
> $_SERVER['DOCUMENT_ROOT']), is always a good idea.
>
> Oh, and Michael Fesser have pointed to the same issue.
right, i'm not arguing any alternative...just giving an example of what i
did to keep it simple for me. it works and does some things that doc root
won't in certain circumstances. tons of ways to skin this cat, however.
cheers
Navigation:
[Reply to this message]
|