SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2004
    Location
    VA
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SSI to include a file from my web server to Blogger

    I wish to include a file from my own web server. I am using it to
    manage meta tags for my blogger blog.
    The SSI is not working. Presently I have it set as follows:

    <!--#include virtual="http://cfcure.com/blogger-meta.shtml" -->

    I have tried extensions of .inc and .html

    None of them work. I know the solution must be simple. What am I
    missing?

  2. #2
    SitePoint Zealot kosh's Avatar
    Join Date
    Aug 2000
    Location
    USA
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SSI only works on local files. You cannot specify http URLs with it.

    You'll need to use PHP includes, or something else. To do PHP, you'd need to have PHP enabled on the server, change your file to have a .php extension, and then add your include like this:

    Code:
    <?php include('http://cfcure.com/blogger-meta.shtml'); ?>
    -Tony
    Outshine - geek blog & free phpBB mods
    Publisher Database - tools & forums for writers
    What Do Women Want? - dating advice for men, from women


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
  •