Results 1 to 10 of 18

Threaded View

  1. #11
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    16,074
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    Here is the next example. This is a quick demo site I'm knocked up for you to take a look at to show you how to create your site using a template and php.

    It's templated, so all pages load from a single template. It is fully xhtml and css coded. The layout uses purely div tags for page layout/position, with all formatting done in a css file. The different parts of the page that are static across the site are held within the template files directory so editing one element of the page is easy, and doesn't require editing the main index.php file where the whole page structure is stored.

    Finally, the actual content for each page is stored in the pages directory, so page content can easily be edited without altering the actual site.

    Fairly straight forward, and you will see it doesn't take much code to create. It is very basic with the only error checking being to see if a variable is set in the url for the page to load, and if it doesn't it automatically loads the home page. A lot more can be done in this regard, such as checking to see if a page set in the URL actually exists on the server, so that visitors can't break the site by typing whatever they wish into the url string.

    To load the site place the whole contents of the zip file into your server's www and then load the index.php file.

    Any questions, just ask.
    Attached Files Attached Files

    If you haven't played a classic game in years, it's never too late to start!


Similar Threads

  1. Humour The Website is down
    By Harrison in forum General Chat
    Replies: 1
    Last Post: 16th November 2010, 17:27
  2. MAME advice on CHD's
    By Bloodwych in forum Arcade
    Replies: 38
    Last Post: 8th June 2010, 13:14
  3. A500 Buying advice, please
    By Cortona in forum Buying and Selling
    Replies: 6
    Last Post: 8th July 2009, 22:29
  4. Basic A500 advice?
    By Fern in forum Hardware
    Replies: 5
    Last Post: 29th November 2008, 17:46
  5. Advice to get an Amiga for old games
    By Tiago in forum Amiga
    Replies: 10
    Last Post: 24th November 2008, 15:03

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright classicamiga.com