You are here: Installing pecl fileinfo on windows.. « PHP Programming Language « IT news, forums, messages
Installing pecl fileinfo on windows..

Posted by noel.whelan@gmail.com on 10/30/39 11:50

Currently trying to install php_fileinfo.dll for version 5.0.5 on
windows:

http://pecl4win.php.net/ext.php/php_fileinfo.dll

I've copied this into c:\php\ext\php_fileinfo.dll, and included the
following in php.ini: extension=php_fileinfo.dll (I initially tried
'pear install fileinfo' but it was yielding a dsp error). I've been
trying to execute the following code:

if(is_file($item)) {
$info = finfo_open(FILEINFO_MIME);
echo finfo_file($info, $item) . "\n";
finfo_close($info);
}

I'm getting the following errors/warnings:

Warning: finfo_open(): Failed to load magic database at '(null)'.
Warning: finfo_file(): supplied argument is not a valid file_info
resource..

I've checked that c:\php\extras\magic.mime exists, too; but the
documentation I've found implies I woudn't need to indicate this
explicitly in php.ini because it's the default location.

I'm not certain what else I ought to do/configure, etc. Thank you for
any input..

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация