Results 1 to 5 of 5

Thread: Need help to simplify copyright nightmare

  1. #1
    Join Date
    Nov 2005
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Need help to simplify copyright nightmare

    I would like to simplify my life by making an external sheet to change the copyright notice on all my pages at one time...instead of changing them one by one. How would I go about doing this?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Include it server-side.
    In PHP:
    Code:
    <?php include("copyright.inc.html"); ?>
    In JSP:
    Code:
    <%@ include file="copyright.inc.html" %>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Nov 2005
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Ok, I guess I don't know enough about php yet. What exactly do I need to do to make a php page for the footer information? I have tried several ways and none of them work.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    php includes just include a page. the included page doesn't even need to be a php file... html is fine.
    Just make sure the page with the php include is a .php page, not .htm. If so, then it'll be just fine.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    And that your server supports PHP, of course.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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