Hello,
I'm having a terrible time using the functions finfo_open and
finfo_file. I'm using PHP 5 on IIS 5.1 and Windows XP. I have enabled
php_mime_magic. dll and php_fileinfo.dl l and also added the lines
mime_magic.debu g = Off and
mime_magic.magi cfile = "C:\Program Files\PHP\extra s\magic.mime".
Now my phpinfo() says fileinfo support is enabled and mime_magic
support is enabled. However, I keep getting this error:
Warning: finfo::finfo() [function.finfo-finfo]: Failed to load magic
database at '(null)'. in C:\Inetpub\wwwr oot\visl\contri bute.php on
line 43
Warning: finfo::buffer() [function.finfo-buffer]: The invalid fileinfo
object. in C:\Inetpub\wwwr oot\visl\contri bute.php on line 44
I have tried everything I can think of and I have Googled everything
under the sun I can think of. Can anyone help?
Thanks!
Ryan
I'm having a terrible time using the functions finfo_open and
finfo_file. I'm using PHP 5 on IIS 5.1 and Windows XP. I have enabled
php_mime_magic. dll and php_fileinfo.dl l and also added the lines
mime_magic.debu g = Off and
mime_magic.magi cfile = "C:\Program Files\PHP\extra s\magic.mime".
Now my phpinfo() says fileinfo support is enabled and mime_magic
support is enabled. However, I keep getting this error:
Warning: finfo::finfo() [function.finfo-finfo]: Failed to load magic
database at '(null)'. in C:\Inetpub\wwwr oot\visl\contri bute.php on
line 43
Warning: finfo::buffer() [function.finfo-buffer]: The invalid fileinfo
object. in C:\Inetpub\wwwr oot\visl\contri bute.php on line 44
I have tried everything I can think of and I have Googled everything
under the sun I can think of. Can anyone help?
Thanks!
Ryan
Comment