For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > December 2006 > where i forget ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author where i forget ?
Dave

2006-12-01, 6:57 pm

Hello,

could you help me please
i would to use exif fonction with php in linux

I had this error

Fatal error: Call to undefined function exif_imagetype() in
/web/sites/user/8/84/50504/public/www/exif.php on line 3

this my script
-----------------------------------------------------------------
<?
echo phpinfo();
if (exif_imagetype('photo19.jpg') != IMAGETYPE_GIF);
{ echo 'Cette image n\'est pas un gif';
}
?>

I did it in my php.ini (I delete the comment)
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_gd2.dll

thank you for your help


-Lost

2006-12-01, 6:57 pm

"Dave" <dfdf@dfffff> wrote in message news:4570a73b$0$25906$ba4acef3@news.orange.fr...
> Hello,
>
> could you help me please
> i would to use exif fonction with php in linux
>
> I had this error
>
> Fatal error: Call to undefined function exif_imagetype() in
> /web/sites/user/8/84/50504/public/www/exif.php on line 3
>
> this my script
> -----------------------------------------------------------------
> <?
> echo phpinfo();
> if (exif_imagetype('photo19.jpg') != IMAGETYPE_GIF);
> { echo 'Cette image n'est pas un gif';
> }
> ?>
>
> I did it in my php.ini (I delete the comment)
> extension=php_mbstring.dll
> extension=php_exif.dll
> extension=php_gd2.dll
>
> thank you for your help


No clue why you use phpinfo() first, but...

That should work just fine. php_gd2.dll has nothing to do with the EXIF functions.

Make sure that php_mbstring.dll is called before php_exif.dll in your php.ini.

-Lost


Koncept

2006-12-01, 6:57 pm

In article <4570a73b$0$25906$ba4acef3@news.orange.fr>, Dave
<dfdf@dfffff> wrote:

> Hello,
>
> could you help me please
> i would to use exif fonction with php in linux
>
> I had this error
>
> Fatal error: Call to undefined function exif_imagetype() in
> /web/sites/user/8/84/50504/public/www/exif.php on line 3
>
> this my script
> -----------------------------------------------------------------
> <?
> echo phpinfo();
> if (exif_imagetype('photo19.jpg') != IMAGETYPE_GIF);
> { echo 'Cette image n'est pas un gif';
> }
> ?>
>
> I did it in my php.ini (I delete the comment)
> extension=php_mbstring.dll
> extension=php_exif.dll
> extension=php_gd2.dll
>
> thank you for your help
>
>


*Requirements*
Your PHP must be compiled in with --enable-exif. PHP does not require
any additional library for the exif module. Windows users must also
have the mbstring extension enabled.

*Installation*
To enable exif-support configure PHP with --enable-exif
Windows users must enable both the php_mbstring.dll and php_exif.dll
DLL's in php.ini. The php_mbstring.dll DLL must be loaded before the
php_exif.dll DLL so adjust your php.ini accordingly.


If you are working on linux, you don't deal with DLL's. You need to
compile this support into your PHP build to take advantage.

--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com