Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Michael A. Peters
brian wrote: RHEL5/PHP 5.1.6 I'm having some trouble getting the Fileinfo package working. It installed fine, and phpinfo() says it's enabled. But it consistently returns an empty string when getting the MIME of a file. /usr/share/pear/bin/pecl install fileinfo vi /etc/php.d/fileinfo.ini ext

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread brian
Thodoris wrote: fileinfo.so is, indeed, in /usr/lib/php/modules. But I know it's enabled, in any case. So, anyone know if this extension doesn't work well with 5.1.6? Well you could enable the error messages to see what is going wrong. The $type var is probably empty because the instanti

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Thodoris
fileinfo.so is, indeed, in /usr/lib/php/modules. But I know it's enabled, in any case. So, anyone know if this extension doesn't work well with 5.1.6? Well you could enable the error messages to see what is going wrong. The $type var is probably empty because the instantiation of the $fi

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread brian
Thodoris Goltsios wrote: Thodoris wrote: Is fileinfo pecl extension installed as a package or with pecl? In case it is installed as an rpm try to remove it and install it as an extension in case the package is broken for some reason. I installed it with PECL: /usr/share/pear/bin/pecl ins

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Thodoris Goltsios
Thodoris wrote: Is fileinfo pecl extension installed as a package or with pecl? In case it is installed as an rpm try to remove it and install it as an extension in case the package is broken for some reason. I installed it with PECL: /usr/share/pear/bin/pecl install fileinfo Other quest

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread brian
Thodoris wrote: Is fileinfo pecl extension installed as a package or with pecl? In case it is installed as an rpm try to remove it and install it as an extension in case the package is broken for some reason. I installed it with PECL: /usr/share/pear/bin/pecl install fileinfo Other questio

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Thodoris
RHEL5/PHP 5.1.6 I'm having some trouble getting the Fileinfo package working. It installed fine, and phpinfo() says it's enabled. But it consistently returns an empty string when getting the MIME of a file. /usr/share/pear/bin/pecl install fileinfo vi /etc/php.d/fileinfo.ini extension=filei

[PHP] fileinfo on RHEL5

2009-05-12 Thread brian
RHEL5/PHP 5.1.6 I'm having some trouble getting the Fileinfo package working. It installed fine, and phpinfo() says it's enabled. But it consistently returns an empty string when getting the MIME of a file. /usr/share/pear/bin/pecl install fileinfo vi /etc/php.d/fileinfo.ini extension=fileinf