/ Published in: PHP

Return true if URL is online.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function is_online( $url ){ if (!$url) return false; if (!$fp) return false; //socket not opened Host: $url[host] "); //socket opened //matching header return true; } else return false; } // if parse url else return false; }
Comments
