SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Include some file, if not found than include other?

    Hi, I'm very new to ASP...

    So I have this code on my page

    Code:
    <!--#include file="somefile.txt"-->
    which will show textual content of somefile.txt

    Now what I want is that if somefile.txt is not found on server, I wan't the content of another textual file to be shown (someotherfile.txt)

    so I need something like

    Code:
    <!--#include file="somefile.txt"-->
    if file not found then
    <!--#include file="someotherfile.txt"-->
    Of course this is not correct code, so that is where I need your help... How do I write this code in ASP?

    Thanks...

  2. #2
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I think you want the Classic ASP (ASP.OLD) forum.


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
  •