is this site live or dead
sometimes we need to import data from other site though we don’t know when we need to use their data from their site,will this site alive or dead?We can fix this problem via a php function called fsockopen,now i have a script that can work for you to understand more precisely
<?php
$up = @fsockopen("www.wordpress.com", 80, $errno, $errstr, 30);
if($up)
{
echo "Wordpress is Alive";
}
else
{
echo "Sorry this site is not available now";
}
?>
that’s it. Now check it out.
Categories: PHP
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
last comment