| 
	
 | 
 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 
==================
 
  
Navigation:
[Reply to this message] 
 |