Created
January 1, 2015 18:48
-
-
Save xombra/4f3949027e6e6f1ec492 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# verifica si una pagina esta online o existe | |
# | |
function VERIFICA_ONLINE($url) | |
{ @$headers = get_headers($url); | |
if (stristr ($headers[0],'200 OK')) | |
{ return true; } | |
else { return false; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment