capecodheaven 0 Posted December 8, 2014 Report 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 Quote Link to post Share on other sites
capecodheaven 0 Posted December 9, 2014 Author Report Share Posted December 9, 2014 the script in question is add_pdf.php Quote Link to post Share on other sites
capecodheaven 0 Posted December 15, 2014 Author Report Share Posted December 15, 2014 The server at my hosting company does not support this function...I found a work around...Thanks Quote Link to post Share on other sites
Larry 433 Posted December 16, 2014 Report 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! Quote Link to post Share on other sites
hartofboone 0 Posted February 16, 2017 Report 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 Quote Link to post Share on other sites
Larry 433 Posted February 16, 2017 Report Share Posted February 16, 2017 Thanks for sharing your experience and kudos for figuring it out! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.