Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fatal error: Call to undefined function, What is it!!!!!

Status
Not open for further replies.

VitoCorleone

Programmer
Jun 22, 2004
28
GB
Hi,

i have been getting the following errors when i run some of my scrpits on my WAMP5.

Fatal error: Call to undefined function blah blah blah line 17

What could it be, I had a look see to check if my EXIF and MBSTRINg was installed, and they seem to be as they are in the module extensions installed in the php.ini file it seems.

Can anyone help? should i reinstall my WAMP5?
 
Ok, Here is what i am running

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 is>>>>

if(exif_imagetype($file) == IMAGETYPE_JPEG) {
 
When you point your web browser to a script that consists entirely of:

<?php
phpinfo();
?>

What does the output of the script have to say about the EXIF extension?

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Hmmm,

i ran :

<?php
phpinfo();
?>

and there is no mention of exif in the whole page, i also did search and find "exif" on the entire page but nothing is found.
 
There, then, is your problem. The exif library is, for some reason, not available to PHP.

If it came with your distribution, it may be that the library is in the wrong directory. Did the exif library come with your PHP distribution?

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top