Hi guys,
I wanted to ask if is it possible to check server status and then connect. I have one TVH server where I am testing and its kinda my "main" server. My family has access to this SERVER, but sometimes it crashes and would like to check the status first and connect to the server. if it would be possible.
I was trying PHP something like this
< ? php
//check MAIN TVH SERVER STATUS
IF ($STATUS=="OK"){
//CONNECT TO MAIN
$IP= "127.0.0.1";} ELSE {
//CONNECT TO BACKUP
$IP= "192.168.0.133";}
?>
Is this even possible?
I was trying both header_location and simply echo URL of SERVER but it didnt connect.