leatherback wrote:
- CSS file is used to generate the looks of the site
- header
- footer
- menu
to create one HTML file. User ..... sees is one thing: The valid HTML file.
<?php
// index.php
// for example, but could be any other page linkable at my website
// header.php : first <html><head>link to CSS style sheet</head>
// then <body> start
// Logo SiteTopBanner, in short the upper part of all pages at site
include("header.php"); // can be header.html or header.tpl, tpl = template
// menu.php : can often be 'navbar.php' nav.php nav = navigation of site
// this is the horisontal bar you see in most any forum, like this one, too
include("menu.php");
?>
<!-- Now using plain HTML and not echo, because this is easier for most of us -->
<!-- index.php Main Contents - this is unique only to index.php -->
Welcome to my website.<br>
Hope you will like it here.<br>
<br>
Your webmaster<br>
/halojoy
<?php // start php again
// The bottom part, copyright Powered by and maybe some links
// like contact and email webmaster
// but also </body></html> closing tags
include("footer.php"); // can be footer.html or footer.tpl
?>
Basically I use same setup as leatherback does but in more simplified and more common version.
There is no end to how advanced you can do anything when you start programming.
And also depends on what material you have to present, how much and
also how many visitors you will have at your website.
What is enough for a small personal homepage, will not do for a big website with
1.000 of visitors online at same time.
Nothing is wrong.
There is basically only one way 'to skin a cat' = take his skin off
But in more detailed aspect, there might be more ways than leatherback says!
Because 2 persons wouldnt do exactly the same.
Basically make a webpage for visitor is to give him some HTML.
But with php or other scripts, can be done in almost infinite number of ways.
My code above needs these elements, files or php scripts in you web directory:
index.php
header.php
menu.php
footer.php
style.css
This is also what most people would use and can settle for ( even if goal at first can be to get 10.000 users ).
This is a very common approach to using php for managing your website.
/halojoy - july 2005 upper part of sweden
"Charting the quality of forage : measuring and mapping the variation of chemical components in foliage with hyperspectral remote sensing."
Take any person involved in writing such stuff with a grain salt.
Still I think, they do eat food and drink water!
Like the rest of us ..... at least sometimes
:p