Dear folks,
I'm trying to use some functions of the GD Graphics Library on my provider's server, but I can't get it to work. I have two test files, test1.php and test2.php . In test1.php I test an return the version of GD Graphics Library, which all works just fine. However, as soon as I start to use some functions like in test2.php (where I try to extract the EXIF data of a digital camera's jpeg) I get error messages of unknown functions... As far as I tried, I could only use gd_info, imagecreatefromjpeg, imagecreate, imagesx, imagesy, imagecopy, imagedestroy, and imagejpeg sa far, but most of the commands I try are simply unknown...
Test1.php (works):
<?PHP
var_dump(gd_info());
?>
results in this:
array(10) { ["GD Version"]=> string(15) "1.6.2 or higher" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(16) "with TTF library" ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(false) ["GIF Create Support"]=> bool(false) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XBM Support"]=> bool(false) }
Test2.php (doesn't work):
<?PHP
$exif = exif_read_data('images/Foto0321.jpg', 0, true);
echo "Foto0321.jpg info:<br />\n";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name: $val<br />\n";
}
}
?>
results in this:
Fatal error: Call to undefined function: exif_read_data() in E:\Ontwikkelmap2\alterimages\test2.php on line 3
Who has a clue about what's wrong ? Could it be that the server simply has an outdated version of GD Graphics Library ???
Kind regards,
Roel