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