ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Enable PHP FileInfo on Windows

    IT Discussion
    php php 7 php 7.3 php 7.4 windows
    1
    1
    2.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      If you are trying to use PHP on Windows, you are likely to run into an issue of FileInfo being missing. This is just a matter of an odd default.

      Search for your php.ini file. Edit it in Notepad (or whatever), search for a line with php_fileinfo in it. It will be commented out by default. Remove the semi-colon at the beginning of the line to activate it. The line should be...

      extension=php_fileinfo.dll
      

      And that's it. Now it works. These instructions apply to all versions of Windows and for PHP 5.4 and later, I believe. Currently tested with 7.4.

      1 Reply Last reply Reply Quote 2
      • 1 / 1
      • First post
        Last post