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





Share this post

Link to post
Share on other sites

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!

Share this post

Link to post
Share on other sites

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



Share this post

Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...