Check your Internet connection with PHP


/ Published in: PHP
Save to your folder(s)

**Example of use:**

$bIsConnected = check_internet_connection();
$sText = ($bIsConnected) ? 'You are connected to the Internet.' : 'You are not connected to the Internet.';
echo $sText;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.