VitoCorleone
Programmer
Hi,
I have the following code to display an image in PHP
<?php
// get a file name
$file='eclipse.jpg';
// check it is a jpeg file
if(exif_imagetype($file) == IMAGETYPE_JPEG) {
$exif = exif_read_data($file,"COMPUTED,IFD0", TRUE);
print ("Picture taken {$exif['IFD0']['DateTime']} ".
"with a {$exif['IFD0']['Make']} " .
"{$exif['IFD0']['Model']} " .
"<br>");
}
else {
print ('Wrong image type');
}
?>
But having the image in my root folder which is diplaying the page via my local host i get the following ERROR message:
Fatal error: Call to undefined function exif_imagetype() in c:\wamp\ on line 17
On line 17 isif(exif_imagetype($file) == IMAGETYPE_JPEG) {
I installed WAMP5 which has Apache, MyPHP and MySQL already configures. Can anyone help?
I have the following code to display an image in PHP
<?php
// get a file name
$file='eclipse.jpg';
// check it is a jpeg file
if(exif_imagetype($file) == IMAGETYPE_JPEG) {
$exif = exif_read_data($file,"COMPUTED,IFD0", TRUE);
print ("Picture taken {$exif['IFD0']['DateTime']} ".
"with a {$exif['IFD0']['Make']} " .
"{$exif['IFD0']['Model']} " .
"<br>");
}
else {
print ('Wrong image type');
}
?>
But having the image in my root folder which is diplaying the page via my local host i get the following ERROR message:
Fatal error: Call to undefined function exif_imagetype() in c:\wamp\ on line 17
On line 17 isif(exif_imagetype($file) == IMAGETYPE_JPEG) {
I installed WAMP5 which has Apache, MyPHP and MySQL already configures. Can anyone help?