|
Posted by Hans Fredrik Nordhaug on 08/01/07 07:50
On 2007-08-01, Jerry Stuckle wrote:
> Hans Fredrik Nordhaug wrote:
>> On 2007-07-31, Jerry Stuckle wrote:
[cut]
>>> Use $_SERVER['DOCUMENT_ROOT'] instead. It contains the root directory
>>> of your virtual host. No changes required when you move your site.
>>
>> Or just dirname(__FILE__). It is a non-issue, but thx for caring.
>>
>> Hans
>>
>
> dirname(__FILE__) gives the path to the current file - which may or may
> not be in the root directory of the server, and will change if you move
> the file. $_SERVER['DOCUMENT_ROOT'] is always the root directory of the
> server and will not change if you move the file.
Please let it go. I do actually know (very well) what I'm doing -
dirname(__FILE__) or really dirname(dirname(__FILE__)) is exactly what
I want, so I freely can move/rename the directories containing the
file. But thx again for caring.
Hans
--
+ It's GNU/Linux, not Linux -> http://www.gnu.org/gnu/linux-and-gnu.html
+ Support the Free Software Foundation -> http://member.fsf.org/
+ Become an Open Directory Project Editor -> http://dmoz.org/
Navigation:
[Reply to this message]
|