Flattr this!

Yes ofcourse that was the big question when I got interested in PHP. The whats & how was troubling alot.Now I kinda know PHP – Still learning but that is always

PHP steps to understanding

Section 1  Formulation of a Plan of Project

what site, content, target audience, reason of making site, functions, uniqueness, extent, expandibility

Section 2 Database Understanding

installation, tables, connection, structural view

Section 3 Create Database

create db, tables, keys

Section 4 Frontend

Decide the design, PSD, Dreamweaver, div tags, basic style css

WEB_ROOT & CONFIG.php very important

my own experience – you should define the WEB_ROOT variable & create the config.php from the start to make your life easy

you usually define WEB_ROOT in your config & that should be your practice

this is the way you do that


$webRoot = str_replace(array($docRoot, 'config.php'), '', $thisFile);
$srvRoot = str_replace('config.php', '', $thisFile);

define('WEB_ROOT', $webRoot);
define('SRV_ROOT', $srvRoot);