note 72785 added to ref.fileinfo

From: Date: Thu, 01 Feb 2007 19:12:41 +0000
Subject: note 72785 added to ref.fileinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-122486@lists.php.net to get a copy of this message
I am about to write how installed this package. First of all, I tried with "pear install fileinfo" - as the manual says. But the pear command said that 'Package "Fileinfo" is not valid, install failed'. Then the "pear install pecl/fileinfo" was a better way. But at that time the "phpize" command was missing. I installed that (on openSUSE distributions it is in the php5-devel, but I think you can find it in your distro's corresponding php-devel package). After that you may install "re2c" (I did). It's homepage is: http://sourceforge.net/projects/re2c Copy the magic file of Apache (usually in /etc/apache2) into the following directory: /usr/locale/share/file/ or /usr/share/file/ Then you have to install "libmagic-dev". If you have Debian based system you can simply install it with apt. But if you have an rpm based system (like me), you have to download the following package: http://packages.debian.org/unstable/libdevel/libmagic-dev It contains the files we need. So, download the file, browse it with Midnight Commander (mc) (you have to apt and dpkg be installed) and simply extract (so copy) the /usr folder (it is inside the CONTENTS folder) of the .deb package to the root folder. And now give the "pear install pecl/fileinfo" command another try :) Ps: Don't forget to check whether the script has wrote the following line into the php.ini (on openSUSE: /etc/php5/apache2): extension=fileinfo.so I hope, I could help. ---- Server IP: 195.70.37.52 Probable Submitter: 81.183.28.22 ---- Manual Page -- http://www.php.net/manual/en/ref.fileinfo.php Edit -- https://master.php.net/note/edit/72785 Del: integrated -- https://master.php.net/note/delete/72785/integrated Del: useless -- https://master.php.net/note/delete/72785/useless Del: bad code -- https://master.php.net/note/delete/72785/bad+code Del: spam -- https://master.php.net/note/delete/72785/spam Del: non-english -- https://master.php.net/note/delete/72785/non-english Del: in docs -- https://master.php.net/note/delete/72785/in+docs Del: other reasons-- https://master.php.net/note/delete/72785 Reject -- https://master.php.net/note/reject/72785 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122486) next »