2010/1/14 JoostV <[email protected]> > > I need to check whether an image exists on a remote server. Anybody got any > quick pointers? > > if (file_exists($file) && is_file($file)) { > } > only works for local files.
Actually, as described in the PHP manual section for the file_exists function (http://www.php.net/manual/en/function.file-exists.php), as of PHP 5.0.0, this function can also be used with some URL wrappers, including HTTP. The image on the remote server is accessible via webserver? > -- > View this message in context: > http://n4.nabble.com/Check-if-an-image-exists-on-remote-server-tp1014172p1014172.html > Sent from the Zend Framework mailing list archive at Nabble.com.
