Mbstring must be loaded before exif. PHP setup program put them in the wrong order in the ini file and I couldn't use exif at all. Had to switch order in the ini file for it to work.
XXXIV. Exif Functions简介With the exif extension you are able to work with image meta data. For example, you may use exif functions to read meta data of pictures taken from digital cameras by working with information stored in the headers of the JPEG and TIFF images. 需求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. 安装
To enable exif-support configure PHP with
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. 运行时配置这些函数的行为受 php.ini 的影响。 当 mbstring 模块可用时,exif 支持用户注释中的 Unicode 和 JIS 字符编码的自动转换。这是通过先用指定字符集将注释解码,把结果再用另一个符合你的 HTTP 输出的字符集编码来实现的。 表 1. Exif configuration options
以下是配置选项的简要解释。
资源类型本扩展模块未定义任何资源类型。 预定义常量以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。
The exif_imagetype() lists several related built-in constants.
phedberg at gmail dot com
19-Jun-2007 08:22
Mbstring must be loaded before exif. PHP setup program put them in the wrong order in the ini file and I couldn't use exif at all. Had to switch order in the ini file for it to work.
webmaster at robert-beran dot de
30-Nov-2006 10:07
here the link to my exif data remover function:
ishida at w3 dot org
21-Sep-2006 11:36
Not to mention Arabic, Hebrew, Chinese, the many Indic scripts, Thai, Greek, etc., etc.
23-Dec-2004 10:55
exif.encode_unicode string | ||||||||||||||||||||||||||||||