Reply to Re: fopen - append works, write fails (but file is truncated)

Your name:

Reply:


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/

[Back to original 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

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