You are here: Re: need help: some advices about webroot structure and organization « PHP Programming Language « IT news, forums, messages
Re: need help: some advices about webroot structure and organization

Posted by Francesco on 10/11/07 13:58

Michael Fesser wrote:

> 1) Why frames?
What's wrong with frames? What would be the right way?

> 3) The 'inc' directory should be stored outside the document root for
> security reasons.
I'll do that!

> I always use absolute paths, based on $_SERVER['DOCUMENT_ROOT'].
I wrote another post some days ago about that:
"noob question about document_root"
I'm not able to retrieve the $_SERVER['DOCUMENT_ROOT'] even if phpinfo()
tells me it's setted.

I use easyphp 2.0 beta here and the zend IDE... I don't know if that
does matter.

"
I actually can find the DOCUMENT_ROOT properly set in phpinfo() output

* "Apache Environment" section, as
DOCUMENT_ROOT | c:/.../properPath

* and "PHP variables" section, as
_SERVER["DOCUMENT_ROOT"] | c:/.../properPath
"


My init
> scripts defines some constants, so it's very easy and convenient to load
> files from my different paths.

Do you call init in the index.php page?

 

Navigation:

[Reply to this 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

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