Jump to content
Larry Ullman's Book Forums

Recommended Posts

Array ( [pdf] => Array ( [name] => ApplicationFormIntern.pdf [type] => application/pdf [tmp_name] => /tmp/php2FQN2N [error] => 0 => 44665 ) )
Fatal error: Call to undefined function finfo_open() in /home/tsbweb5/public_html/ecom2/add_pdf.php on line 57

 

Hello and HELP...lol

 

I am trying to upload a pdf file and I get the above fatal error.

PHP version is 5.5.19 which should support the finfo_open function

I used print_r($_FILES) to show the contents(above) and all looks fine

UPLOAD_MAX_FILESIZE = 128M in phpinfo()

I copied the exact script from the lesson in Chp 5

I am using WEBHOSTINGHUB as my host

 

Any help would be appreciated

 

Thank-you

 

Tom

Link to comment
Share on other sites

  • 2 years later...

I had the same problem with the undefined function finfo_open() when I tried to upload a pdf. 

 

I'm running XAMPP. To fix it I edited the main php.ini.

 

Remove the comment from the following extension and restart the apache server to enable the fileinfo extension

 

extension=php_fileinfo.dll

Link to comment
Share on other sites

 Share

×
×
  • Create New...