1. Download Php_fileinfo.dll file (http://www.dllzj.com/) online. If you are using XAMPP, you do not have to download it yourself, XAMPP has integrated this thing inside.
2, to sourceforge.net download the file program (file program is GNUWin32 project one of the programs), address is: http://sourceforge.net/projects/gnuwin32/files/ file/, but it's best to choose Version 4.20 or earlier, because there are no Magic.mime files in later versions. Download the binary version, similar to File-x.xx-bin.zip. Unzip the downloaded File-x.xx-bin.zip and copy the magic and magic.mime two files that hold the file type information from the share directory to a directory (/extras of the PHP installation directory).
3, PHP.ini joined such a line: Extension=php_fileinfo.dll. Restart Apache to see if Phpinfo () has properly enabled FileInfo.
4. Note that you must install different DLL files according to the number of digits (32 bits or 64 bits) of your machine.