Skip to content

Instantly share code, notes, and snippets.

@bryhal
Created February 15, 2013 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bryhal/4957856 to your computer and use it in GitHub Desktop.
Save bryhal/4957856 to your computer and use it in GitHub Desktop.
Workaround for file_exist() on remote server when checking if an image exists
function image_exists($uid) {
$url= getimagesize('http://269.354.158.245/images/someimage.jpg');
if (is_array($url)) {
$path = 'http://269.354.158.245/images/someimage.jpg';
} else {
return FALSE;
}
return $path;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment