Colleagues.
I have a web-based system developed in PHP, but I would like a message to appear like Outlook and Facebook when the connection goes down. In PHP I did the following:
if(!$sock = fsockopen('www.google.com.br',80,$num,$error,5)){
// Aqui apareceria a mensagem em bootstrap.
}
But it is not working. When the connection drops, that browser error page appears.