note 82570 modified in ref.fileinfo by philip

From: Date: Fri, 18 Apr 2008 22:52:32 +0000
Subject: note 82570 modified in ref.fileinfo by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138527@lists.php.net to get a copy of this message
It is really strange to find that installing filenfo extension on windows is not yet fully explained. Here are the latest most up-to-date steps to make this work: 1. Add php_fileinfo.dll to the list of enabled extensions extension=php_fileinfo.dll 2. Download GNU file package for windows get it from here: http://gnuwin32.sourceforge.net/downlinks/file-bin-zip.php Extract the folder from the archive called shared\file which contains 4 magic files (magic, magic.mgc, magic.mime, magic.mime.mgc). 3. Place these 4 files in a known place 4. Add system enviroment variable MAGIC that points to the file called magic. For example if you placed magic files in folder called magic in c:\php that means that the propper path is c:\php\magic\magic 5. If you use IIS restart it and fileinfo is ready for use 5a. If you use apache you will have to restart operating system for the service to acknowledge MAGIC env. variable. --was-- It is really strange to find that installing filenfo extension on windows is not yet fully explained. Here are the latest most up-to-date steps to make this work: 1. Add php_fileinfo.dll to the list of enabled extensions extension=php_fileinfo.dll 2. Download GNU file package for windows get it from here: http://gnuwin32.sourceforge.net/downlinks/file-bin-zip.php Extract the folder from the archive called shared\file which contains 4 magic files (magic, magic.mgc, magic.mime, magic.mime.mgc). 3. Place these 4 files in a known place 4. Add system enviroment variable MAGIC that points to the file called magic. For example if you placed magic files in folder called magic in c:\php that means that the propper path is c:\php\magic\magic 5. If you use IIS restart it and fileinfo is ready for use 5a. If you use apache you will have to restart operating system for the service to acknowledge MAGIC env. variable. http://php.net/manual/en/ref.fileinfo.php

« previous php.notes (#138527) next »