SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: ASP and SSI

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 1999
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    A bit technical, but here goes.

    Can I execute ASP code in a SSI file? The thing is, we generate content using a database, but I want to use shtml to include the navigation areas.

    Thus, I will be including ASP in the SHTML file. Will the ASP execute?

    Also, is SSI faster than Javascript?

    Thanks

    James

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 1999
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ooops!

    I meant SSI in ASP.

    Sorry.

  3. #3
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you aree includeing a file that as asp code it has to have the .asp name after it instead of .inc or a variant. i'm not 100% but i think the file that is calling the included asp should also be .asp IMHO it's just good form anyways. this way you prevent headahes later if you change all the pages to ASP etc....

    in orther words if you are on NT and building ASP then make all your files end in .asp and just have fun.....

    ------------------
    Eric Jones - WR Moderator / Administrator
    http://www.computermoles.com
    "Digging up the best in computer software!"

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 1999
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, so I can name the file .asp (since it will contain the ASP code), and use SSI include commands in the file. Let me try that.

    Onc eI figure out what happened to PWS that is!

    Thanks!

  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)
    That is correct.. If your using ASP you must have an ASP extension to include files. The files you include can also contain ASP tags and script. I am not sure whether other SSI commands like DATE and TIME work but you could always create those using VBscript or JScript within your ASP tags.

    ------------------
    Wayne Luke

    The Majormud Encyclopedia - www.bloodquest2.com
    Come Play one of the hottest games on the net.



  6. #6
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    Vilnius, Lithuania
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SSI funcionalyti in ASP is limited to include and one other derective (can't recall). But as wluke said other aren't really needed. As for included files they can have any extensions, no matter what is in them. However it is recommended to use .asp extension, from the security point. .asp's get executed while other will be transmited to the client in case he knows the exact file name. So he can gain access to your sources.

    ------------------
    Alan Mendelevich aka ailon
    New! ArticleCentral.com - The content directory for web professionals. Monitoring hundreds of web development related sites, daily.
    Visit MEGOPhotos - Quality photos for FREE



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
  •