Forums Gallery Movies File Hosting Classifieds Jokes Free Hosting Free Blogs

Go Back   BizHat Forums > Computer Forum > Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-17-2009, 01:06 PM
Junior Member
BizHat Newbie
 
Join Date: May 2009
Posts: 3
Default Ignore included file not found and show the rest of the page?

Hi there,

I have page I created.. and this is one part of its code...


So this are just plain txt files that I want to include on my page, right..

Code:
<!--#include file="sms1.txt"-->
<!--#include file="sms2.txt"-->
<!--#include file="sms3.txt"-->
<!--#include file="sms4.txt"-->
<!--#include file="sms5.txt"-->
Now the thing is, not all of these txt files are always on server, and that is ok to be... So for example I can sometimes have situation where file sms4.txt is not found on server... I will not go in further explaining why, but it's the way it is and the way it should be...

Now what I want is if sms4.txt is not on server, I want to show the included content of other txt files, and make full asp page viewable in the browser even without missed included txt file and want sms4.txt to be skipped...

Rather than that, in reallity if there is not sms4.txt file I get error 0126 file on page view, which tells me that included file sms4.txt is not found on server...

So how do I make page shown and other txt files included, and page to works even if any of other txt files are missed from server?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0