Hi,
I’m using a snippet with the following to get an image’s exif data:
<?php
echo "test1.jpg:<br />\n";
$exif = exif_read_data('tests/test1.jpg', 'IFD0');
echo $exif===false ? "No header data found.<br />\n" : "Image contains headers<br />\n";
$exif = exif_read_data('tests/test2.jpg', 0, true);
echo "test2.jpg:<br />\n";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name: $val<br />\n";
}
}
?>
But I’m getting the following error page:
test1.jpg:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: exif_read_data() [function.exif-read-data]: Unable to open file
Error type/ Nr.: Warning - 2
File: /var/www/vhosts/domain.com/httpdocs/manager/includes/document.parser.class.inc.php(814) : eval()’d code
Line: 3
Parser timing
MySQL: 0.0014 s (3 Requests)
PHP: 0.0229 s
Total: 0.0243 s
Anyone encountered such a problem?