Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    January 18th, 2005
    Location
    Toronto
    Posts
    80
    Question allposters and includes
    In allposters does the "include" act in the same way as an SSI - Server Side Includes?

    With an SSI I can change the information in the "include" file, upload the modified file, and the new info is loaded when the page is rendered.

    Does allposters handle its "include" in the same manner or are the "include" files only processed when allposters.pl is run?

    Thanks.
    Richard E. Ward
    [url]www.richardeward.com[/url] [url]www.itjobcoach.com[/url]

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    <!--include--> is processed by allposters.pl when you run allposters.pl. Whatever is in the include file is written to the created .html file.

    The include file can contain SSI statements or <script> statements (or indirectly generated by allposters.pl because the include file contains directives such as <!--amazon:MODE-->). Those SSI statements (or <script> statements) behave as SSI statements (or <script> statements) normally behave and are run by the web server (or web browser) when the webpage is viewed.

    If the include file contains purely static text (e.g.: "I'm Richard") and you run allposters.pl, then that will be in the created .html files. If you modify the static text file (e.g.: "I'm Rick"), you'll have to re-run allposters.pl for the change to take effect. If you want true SSI, then use SSI statements in your template files or in your include files (SSI statements in allposters include files are merely copied as is to the .html file; they are not run during copying).

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Member
    Join Date
    January 18th, 2005
    Location
    Toronto
    Posts
    80
    Thumbs up
    Thanks David,

    As I undersand it, now, I can actually just put SSI statements in the template files. I don't know why I haven't understood this before. I must have read the documentation a hundred times and it just hasn't registered.

    As usual, thans for walking me through this stuff.
    Richard E. Ward
    [url]www.richardeward.com[/url] [url]www.itjobcoach.com[/url]

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: May 6th, 2012, 12:47 PM
  2. StatsJunky now includes Webgains
    By Ryan Gilbert in forum Webgains.com
    Replies: 0
    Last Post: September 25th, 2009, 04:10 PM
  3. yet more virtual includes problem...
    By jazzylee77 in forum Cusimano.com Scripts
    Replies: 2
    Last Post: January 31st, 2008, 01:40 AM
  4. Server Side Includes
    By Roland in forum Midnight Cafe'
    Replies: 5
    Last Post: April 25th, 2005, 11:55 AM
  5. Includes
    By dwooding in forum Cusimano.com Scripts
    Replies: 1
    Last Post: February 8th, 2005, 05:25 PM

Posting Permissions

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