Forums
This topic is locked
parse a text file for condition
Posted 30 Oct 2001 22:31:23
1
has voted
30 Oct 2001 22:31:23 Brian Mears posted:
Got a tricky one. I am trying to parse the contents of a text file and conditionally show an image from the result. Any thoughts?Replies
Replied 30 Oct 2001 22:32:29
30 Oct 2001 22:32:29 Brian Mears replied:
the p***** would also be known as p a r s e.
Replied 31 Oct 2001 01:47:36
31 Oct 2001 01:47:36 Viktor Farcic replied:
Just use If... Then... statement. Something like:
<%
If CONDITION Then
SHOW IMAGE
End If
%>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Got a tricky one. I am trying to parse the contents of a text file and conditionally show an image from the result. Any thoughts?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
<%
If CONDITION Then
SHOW IMAGE
End If
%>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Got a tricky one. I am trying to parse the contents of a text file and conditionally show an image from the result. Any thoughts?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 01 Nov 2001 13:21:31
01 Nov 2001 13:21:31 Brian Mears replied:
Ok, but the txt file I want to use will be separate from the actual page. For example, A server application will monitor systems for connectivity based on 3 variables (red, yellow, and green) and periodically FTP a text file with the current status to the webserver. How can I make the "overview" page check the text file for the current status?