Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 2 of 2 FirstFirst 1 2
Results 11 to 11 of 11

Thread: Hyperlinks

  1. #11
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,772
    Member #
    5580
    Liked
    723 times
    Dan,
    If those 200 pages are pretty much the same except for some
    content and graphics, you should do this the next time you make
    a website.

    Create one PHP script called something like "page.php".
    Create one PHP script called something like "nav.php".

    Then you have 200 text files that have the various parts
    that are different.

    The one PHP file called: page.php will have "includes"
    in it that insert the correct text file into the script.
    It will also insert the nav.php portion into the script.
    "nav.php" will be one common navigation for all pages.

    So you don't have any static webpages. The PHP script
    called "page.php" creates the webpages for you, you only
    need to edit those text files, which can also be done online
    using PHP.

    I can best describe this by having you look at this website:
    http://www.palosantodesigns.com

    Move your mouse over the links and see what the URL is.
    It's always referencing one PHP script called: "page.php"
    and then a variable attached that tells the script which
    text file to "include". The site owner uses another PHP
    script to edit those text files, sort of like using Notepad.

    That whole site has about 50 pages, but none of them are static.

    There is only one "static" page, called "index.php" ... and that
    has dynamic PHP in it also.

    For your site now, it's sort of too late to do that. But, in the future?


  2.  


Page 2 of 2 FirstFirst 1 2

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:59 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com