These two PHP functions - mime_content_type and finfo_open - are throwing out a fatal error in one of my scripts. Are they installed/enabled on shared host? I understand mime_content is deprecated so changed over to finfo_open. Still a no-go.
Fatal error: Call to undefined function mime_content_type() in /home/xxx/public_html/xxx/classes/attachment.php on line 172.
Thanks in advance
PHP: mime_content_type() and finfo_open
Started by
sftv
, Oct 20 2011 11:28 AM
3 replies to this topic
#1
Posted 20 October 2011 - 11:28 AM
#2
Posted 21 October 2011 - 01:38 PM
The functions appear to be from a "Fileinfo" extension to PHP and not the core libraries, so I guess they're not installed. You could try asking for them to be added to your server, but you may get a recommendation to try another method (if one exists).
The more information you provide, the better answer the community can give.
*** Sign up at ASO with a 15% discount (coupon: saveme15%) or $5 discount (coupon: saveme$5) ***
(Valid on shared hosting and VPS)
*** Sign up at ASO with a 15% discount (coupon: saveme15%) or $5 discount (coupon: saveme$5) ***
(Valid on shared hosting and VPS)
#3
Posted 24 October 2011 - 06:39 AM
Thanks for the info. I was not sure if the functions were not installed, disabled, or just needed a special call/include for ASO shared servers. I'll send in a ticket to verify and for any recommendations.
#4 -ASO- Frank
Posted 24 October 2011 - 08:03 AM
Yeah, the original mime_content_type() function was removed in recent versions of PHP in favor of the fileinfo PECL module. Open a ticket with support, they should be able to get it installed for you.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
Sign In
Create Account








