FileInfo not working in php 5.3.3
I'm making a simple call to finfo_open() and I get:
开发者_Go百科"Call to undefined function finfo_open()"
Isn't FileInfo packaged with php 5.3.3 (Unix). Do I need to turn it on in php.ini?
Thanks
It looks like you could get it enabled but you're missing some constants. These are the values from my system:
FILEINFO_NONE = 0
FILEINFO_SYMLINK = 2
FILEINFO_MIME = 1040
FILEINFO_MIME_TYPE = 16
FILEINFO_MIME_ENCODING = 1024
FILEINFO_DEVICES = 8
FILEINFO_CONTINUE = 32
FILEINFO_PRESERVE_ATIME = 128
FILEINFO_RAW = 256
Maybe it helps.
Depends really, the php on your server might have been compiled without it for some reason.
create a new .php file and put the infamous <? phpinfo(); ?>
and check to see if that extension is compiled in.
精彩评论