SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast S.K's Avatar
    Join Date
    Mar 2001
    Location
    Chennai,India
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SSI inside an SSI call!

    Is it possible?
    I tried it, but it is not working.
    Is there a workaound?
    Thanks in advance.
    Regards,
    S.K
    CyberBrahma
    ~~~~~~~~~~~
    Ignorance is Bliss!

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, it's not possible. You can use PHP to do it though.

  3. #3
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you cannot combine the files into one, could you workaround by splitting it into three different files?
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  4. #4
    SitePoint Enthusiast S.K's Avatar
    Join Date
    Mar 2001
    Location
    Chennai,India
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks!

    Yes, nmj, thatz what I am preently doing - successive ssi calls! :-)
    And, this is to Anarchos, the Dictator: Could you please give me more details on the php solution?
    Thanks al.
    Cheers.
    S.K
    CyberBrahma
    ~~~~~~~~~~~
    Ignorance is Bliss!

  5. #5
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, but it depends on which SSI calls you're using. If it's #includes, then do <?php include("blah.php") ?> in one final, then in blah.php do <?php include("blah2.inc") ?> for example.

  6. #6
    SitePoint Addict
    Join Date
    Jan 2001
    Location
    Ottawa ON
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It sounds to me that if you even have to ask if you can nest SSI calls you're using the wrong technology. Switch to a scripting language and you'll thank yourself for it since there are so very many advantages.

  7. #7
    SitePoint Enthusiast S.K's Avatar
    Join Date
    Mar 2001
    Location
    Chennai,India
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks both.
    I'll try the php example.
    And Prousej, could you please elucidate as to which scripting language you are alluding to and do you suggest that a program is to be written in that language for the task of calling nested ssi's, instead of a mere <!--# or <?php include etc.
    For dummy's sake! :-)
    Cheeers!
    S.K
    CyberBrahma
    ~~~~~~~~~~~
    Ignorance is Bliss!

  8. #8
    SitePoint Addict
    Join Date
    Jan 2001
    Location
    Ottawa ON
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm a relative beginner myself. All I meant is that if you're getting into nesting SSI callse, it's probably a good idea to move up to somethign along the lines of PHP so that you'll be able to take advantage of all of the features that it offers like variables and logic, etc. The only way to mimic those in SSI is with proprietary XSSI schemes and unless you're developing for absolute speed, they're not worth using IMO.

  9. #9
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    An SSI call inside an SSI call IS possible. You just need to ensure the file that is being included has the extension shtml. Instead of including a file called navigation.txt, change it to navigation.shtml and it will be parsed for server side includes before being included in the page.


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
  •