Online status website

Results 1 to 2 of 2

Thread: Online status website

  1. #1
    Gilesmiles Guest

    Default Online status website

    Does anyone know how to check if a certain site is online from another site ?<BR>

  2. #2
    Johnny Hughes Guest

    Default RE: Online status website

    There are several things that you could do... I have a product called asptear that I use to read webpages from other sites (there are many other products that work the same). If you have a component like that installed, you could get the web page text and then search for a value you know is on the page with the instr() function. The below would work with asptear<BR><BR>Dim objInetTransCtrl<BR>Set objInetTransCtrl = CreateObject("SOFTWING.ASPtear")<BR>StartText = &#060;Title&#062; &#039;this is some text you know is on the page<BR>strPage = objInetTransCtrl.Retrieve(OpenURL,"2","","","")<BR >pos = InStr(strPage,StartText)<BR>If pos &#060;&#062; 0 then<BR>response.write "page is online"<BR>Else<BR>response.write "page is offline"<BR>End if<BR><BR>You can obtain asptear here:<BR><BR><BR>Also you could modify the ping code here to ping the server that you want tocheck and test the results:<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts