i use codeigniter. i build in localhost
i call image link from database like : http://example.com/person1.png, http://example.com/person2.png
IF database said NULL or EMPTY, i will replace image by no-thumb.png
if that image is stored in my drive (localhost) i can use is_file()
And my problem is : database said that image is exist as http://example.com/person1.png, but actually, the image is not exist i want to display 20 data in each page.
i can check the link using, fil_get_content, get_header or curl, like this,
function url_exists($url) {
if (!$fp = curl_init($url)) return false;
return true;
}
but i need to dowload 20 file for checking purpose which not cool,
is there any elegant/best way to solve this problem?
for demo, i upload my screenshot
my problem is in the first row (red circle).
Thanks for any help. i will appreciate that