I wrote a SimpleXML script in PHP to parse data from an external XML file on another server.
Basically I just need an IF ELSE statement to check if the file is available, and if it is not, then simply display the message "server offline" to the user.
I know how IF ELSE statements work, but have confused myself with the formatting lol. And not sure just how to check if a page on another server is available or not.
IF http://12.123.12.1/somepage is available {then run script here }ELSE{ display "server offline"}
Any help is much appreciated, thanks.
Chuck