SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2000
    0 Post(s)
    0 Thread(s)
    Just wondering if anyone could help me with a problem I am having. I need to have a lot o webpages that pull a line of text from a txt file so that when the file is changed, all the HTML files will have the new info when they start.

    Any ideas? Please let me know.

  2. #2
    SitePoint Community Guest
    SSI will help you do that

    name all your files like something.shtml instead of something.html

    THEN, in this file, you can put

    <!--#include file="somefile.html"-->

    now , WHEN you load something.shtml , it should include somefile.html contents where youhave put that line... this is if your admin has enabled shtml on the server by default, which is usually the case, or you'll have to use .htaccess to enable it

    Your #1 source of Webmaster Resources


Posting Permissions

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