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

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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