PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Networking

HostIsAvailable

Syntax

HostIsAvailable <hostname-or-address>

Description

Returns True if the specified Internet host is available.

Parameters

<hostname-or-address>

The Internet host name or numeric address.

Remarks

This statement performs a ping communication to the specified host.

Example

   If HostIsAvailable "www.p1.com" Then
InternetGet URL="www.p1.com/index.html" Result=pageBuffer
Else
MessageBox Title="Error" Text="Host is not available." StayInFront
EndIf

The above script fragment obtains a copy of the P1 Systems homepage if the www.p1.com host is available.



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.