PHP
  Home arrow PHP arrow Page 2 - Setting up the Foundation for an Exten...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Setting up the Foundation for an Extensible Website Engine with PHP 5
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 14
    2006-10-24

    Table of Contents:
  • Setting up the Foundation for an Extensible Website Engine with PHP 5
  • Defining the core structure of a simple yet dynamic website
  • Creating a simple template file
  • Defining the database schema with MySQL

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Setting up the Foundation for an Extensible Website Engine with PHP 5 - Defining the core structure of a simple yet dynamic website


    (Page 2 of 4 )

    As I said right at the beginning of this article, the website engine that I plan to build will be based on the functionality provided by some PHP 5 classes, which will be reviewed later. For now, I'd like to commence by defining the general structure of the dynamic website itself to give you a good idea of how it will look.

    Basically, the skeleton of the sample website that I'll create will be comprised of the following sections: header, main navigation bar, left-placed column, center-placed column, right-placed column, and finally the usual footer section. Nothing unexpected, right?

    As you can see, the structure that I described before corresponds to a typical three-column web page layout, which is properly exemplified by the set of screen shots included below. Please, have a look at the first one, which shows not only the overall appearance of the sample website in question, but also depicts the appearance of a "Profile" page included within the site:

    As you'll realize, the above image reaffirms the concepts that I explained before. The layout of the sample website will be made up of a header, then three central columns, and finally a footer area.

    In this specific case, the previous picture shows the look and feel that corresponds to a hypothetical "Profile" page, but there are still some other pages that I'd like to you show you. Take a look at the following screen shot, which shows the visual appearance of a "Products" page:

    As you can see, the above image demonstrates the consistent look and feel of the sample website, and at the same time shows the basic appearance of a "Products" page. Of course, the overall visual presentation of the site can be significantly improved to fit your particular needs, but for the moment I decided to keep it simple. That will give you an accurate idea of how each section of this website will look, without having to mess up the overall development process too much.

    Al right, at this point you've hopefully grasped the key points of how to define the general structure of this sample website. So let me show you finally a few additional screen shots, aimed at demonstrating the look and feel of the eventual  "Services," "Customers" and "Contact" pages. Here is how they look:

    Okay, I think that the above screen shots are more than enough for demonstrating the core structure of the dynamic website that I plan to construct. As I mentioned before, each section of the site presents a consistent look, a fact that makes them very convenient to generate with a simple static template file.

    Speaking of the concrete template file that will be used in this tutorial, in the following section I'll show you its source code. Click on the link below and keep reading to learn how this will be achieved.

    More PHP Articles
    More By Alejandro Gervasio


       · If you're taking your first steps on building dynamic websites with PHP, hopefully...
       · Though I understand the goals of this tutorial, and that it is more of a beginner...
       · Thank you for your extensive comments on my PHP article. As I said in the...
       · Hi, Nice article.Shouldn't there be a part where you pull data from the mysql...
       · Hello Robert,Thank you for the kind comment on my PHP article. You're correct...
       · Here is a more advanced version of a site...
       · Thank you for the contribution. Yes, I've read that series of articles too and...
     

       

    PHP ARTICLES

    - Validating Web Forms with the Code Igniter P...
    - Output Buffering
    - Paginating Database Records with the Code Ig...
    - HTTP Headers in Web Development
    - Project Management: Administration
    - Building a Database-Driven Application with ...
    - User Authentication for a Project Management...
    - Introduction to the CodeIgniter PHP Framework
    - Adding Users for a Project Management Applic...
    - Migrating Class Code for a MIME Email to PHP...
    - Login and Logout Authentication for a Projec...
    - Composing Messages in HTML for MIME Email wi...
    - Project Management: Authentication
    - A Better Way to Determine MIME Types for MIM...
    - Project Management Overview





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway