I want to get comment
metadata of images inside ../banners
folder
$arr = scandir("../banners/");
foreach($arr as $el){
echo $el; // this works
$path = '../banners/' . $el;
//$arrb = exif_read_data($path, 0, true); // line 91
$arrb = exif_read_data($path, "COMMENT"); // line 92
print_r($arrb);
}
Result:
If I execute line 91
everything is listed, but anyway - there is a warning:
Warning: exif_read_data(): Unable to open file... on line 91
If I execute line 92
there is no data but the warning is there:
Warning: exif_read_data(): Unable to open file... on line 92
I'm on localhost, windows 7, wamp.
Any help?