I have a php script
opening sock with
$sock = fsockopen($server,$port, $errorno, $errstr, 30);
and my scripts are determined within
while ($sock) { ... }
is there anyway for me to check wether the connection is vaild or not? just like sending a PING waiting for SERVER to PONG back every 1 minute? if there's no response over 1 min, it will reconnect itself?
Thanks for reading my problem 🙂