capecodheaven Posted December 8, 2014 Share Posted December 8, 2014 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 More sharing options...
capecodheaven Posted December 9, 2014 Author Share Posted December 9, 2014 the script in question is add_pdf.php Link to comment Share on other sites More sharing options...
capecodheaven Posted December 15, 2014 Author Share Posted December 15, 2014 The server at my hosting company does not support this function...I found a work around...Thanks Link to comment Share on other sites More sharing options...
Larry Posted December 16, 2014 Share Posted December 16, 2014 My apologies for not replying earlier; I kept meaning to get to it but, admittedly, didn't have any obvious explanation off the top of my head. In any case, I'm glad you found out why and thanks for sharing that! Link to comment Share on other sites More sharing options...
hartofboone Posted February 16, 2017 Share Posted February 16, 2017 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 More sharing options...
Larry Posted February 16, 2017 Share Posted February 16, 2017 Thanks for sharing your experience and kudos for figuring it out! Link to comment Share on other sites More sharing options...
Recommended Posts