Reply to Re: [PHP] Document root, preferred way to find it???

Your name:

Reply:


Posted by Marek Kilimajer on 03/07/05 04:08

Leif Gregory wrote:
> I'm not sure I'm completely following you. Let's say I had the
> following:
>
> Site root"
> "c:\apache\htdocs\test"
>
> A subfolder of site root
> "folder1"
>
> A subfolder of the above folder1
> "folder2"
>
> If I call dirname(__FILE__) from a page in each folder I'll get the
> following respectively:
>
> "c:\apache\htdocs\test"
> "c:\apache\htdocs\test\folder1"
> "c:\apache\htdocs\test\folder1\folder2"
>
> I don't see where that tells me where the include folder would be.

If you know how the files are layed out in your application, you do.

[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

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