2
Colleagues.
I have a web-based system developed in PHP, but I would like a message to appear as it occurs in Outlook and Facebook when the connection falls. In PHP I did as follows:
if(!$sock = fsockopen('www.google.com',80,$num,$error,5)){
// Aqui apareceria a mensagem em bootstrap.
}
But it’s not working. When the connection drops, that browser error page appears.
php is a language that runs on the server side and is not on the aware side. So if the connection drops, of course it cuts the connection to the server where this php runs.
– helderk