Reply to Re: need help: some advices about webroot structure and organization

Your name:

Reply:


Posted by Jerry Stuckle on 10/11/07 14:12

Francesco wrote:
> 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
> "
>

And you're getting responses in that thread. Please don't post the same
problem in more than one thread.

>
> 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?
>

I do the same. I just include the script to get system-defined values.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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