well, as the
tutorial
indicates,
break your own
code up into
sections
(header,
sidebar,
footer... etc.)
those sections
become files of
their own
(header.php,
footer.php (you
get the idea)).
So then, for
each file of
your site, it
starts like
this:
Code:
<?php
include($_SERVE
R['DOCUMENT_RO
OT'].'/page_h
eader.php');
include($_SERVE
R['DOCUMENT_RO
OT'].'/page_s
idebar.php');
?>
<!--BEGINNIN
G OF PAGE
MIDDLE-->
<p>here
is the body of
my site, were
all the content
goes.
enjoy!</p>
;
<!--END OF
PAGE
MIDDLE-->
<?
include($_SERVE
R['DOCUMENT_RO
OT'].'/page_f
ooter.php');
?>
Now, include
the PHP code
provided from
the tutorial
for page header
in your page
header.php as
the very first
lines of code,
even before
<HTML>.
this is just to
make things
more simple for
you. if you
dont want to do
it that way,
the
"page_hea
der" code
needs to be at
the beginning
of every page
of your site
that you want a
user
recognized.
Edited at 12:04:24 am on 12/01/05
|