Created
February 12, 2016 09:39
-
-
Save Bat-Chat/857740c3640ae5507c6a 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
$fileHeaders = @get_headers($imgUrl); | |
if($fileHeaders[0] == 'HTTP/1.1 200 OK') { | |
echo 'image exists'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment