<?php $headers = get_headers('http://www.example.com/file.jpg'); if($headers[0]=='HTTP/1.0 200 OK'){ echo 'true'; // file exists }else{ echo 'false'; // file doesn't exists }
You have javascript disabled. You will not be able to edit any code.