<html>
<body>
switch (connection_status())
{
case CONNECTION_NORMAL:
$txt = 'Connection is in a normal state';
break;
case CONNECTION_ABORTED:
$txt = 'Connection aborted';
break;
case CONNECTION_TIMEOUT:
$txt = 'Connection timed out';
break;
case (CONNECTION_ABORTED & CONNECTION_TIMEOUT):
$txt = 'Connection aborted and timed out';
break;
default:
$txt = 'Unknown';
break;
}
echo $txt;
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_misc_connection_status by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:51:03 GMT -->
</html>