| Posted by Francesco on 10/11/07 11:36 
Hi there!I'm trying to organize my sources into a webroot tree like this,
 
 webroot
 index.htm        - only contains index.php into a frame
 index.php        - require_once('inc/layout.php')
 
 home
 page1.php    - require_once('../inc/layout.php')
 page2.php    - require_once('../inc/layout.php')
 page3.php    - require_once('../inc/layout.php')
 
 inc
 config.php
 layout.php   - require_once('redirect.php')
 redirect.php - require_once('config.php')
 
 
 config.php
 contains all the settings... the list of pages and other stuff.
 
 layout.php
 is the layout used to draw pages.
 
 redirect.php
 contains the functions that I use to browse the site.
 
 I have some questions for yoy:
 
 1. is that a good way to structure the site?
 
 2. what about the require_once function?
 I mean is it safe to use relative path?
 
 3.What would be te best strategy to manage this structure?
 
 Thanks in advance for your precious help!
 Francesco
 [Back to original message] |