473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Installing pecl fileinfo on windows..

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..

Jun 15 '06 #1
0 5375

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Joe | last post by:
Hey I have tried to install ImageMagick on my server, but my apache stalls when i try to start it with the following line added to my php.ini file: extension=php_imagick.dll I can't even...
0
by: Harald Lapp | last post by:
hello, i'm looking for someone who's running the SDO extension succesfully with Mac OS X. i've already a working PHP 5.1.2 installation with all necessary extensions compiled (like PDO-mysql,...
1
by: news | last post by:
We have PHP 4.3.9 on a RedHat ES4 server. Supposedly PHP4 comes with ZZIPLib pre-bundled: http://us2.php.net/manual/en/ref.zip.php But I can't locate the library on the server. And my...
1
by: zpinhead | last post by:
I am unable to get my downloaded extension from pecl to link up with php properly. seems like the php.so I could not use pear install http. pear claimed the extension was already installed....
4
by: pek | last post by:
Two questions: 1. Is there a way I can find a list of all available php libraries and with which version they can run..? 2. Using php code, is they a way I can find out if I have loaded a...
1
by: Tom | last post by:
I'm trying to install the Fileinfo extensions from a PECL library called "fileinfo". The install fails because autoconf cannot be found. I have a custom installation of autoconf running out of my...
0
by: Tony Adamoli | last post by:
Can someone help me install ImageMagic on a Windows 2003 Small Business Server running PHP 5.2.5 and IIS 6.0? This has been driving me crazy all day. I have downloaded php_imagick.dll from the...
4
by: MDMC | last post by:
Hi all, I'm trying to install two extensions into my php configuration; pdo and pdo_mysql I have downloaded the following packages; http://pecl.php.net/get/PDO-1.0.3.tgz and...
2
by: bgold12 | last post by:
I just can't seem to figure out how to install this extension. From what I understand, there needs to be a .dll file located in the PHP extensions folder, and there needs to be a line in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.