PHP function mime_content_type not working

Status
Not open for further replies.

davenote

New Member
Messages
28
Reaction score
0
Points
1
The PHP function mime_content_type is no longer working. Perhaps this is due to the recent migration? The error message returned is "Fatal error: Call to undefined function mime_content_type()"
example:
echo mime_content_type('php.gif') . "\n"; // should return the string image/gif

See http://libertygeneralbaptistchurch.org/?q=photo_folder_pager for an example of the error message which is returned now.
The last known date that I navigated to that page and did not receive an error was April 17, 2014.
 

davenote

New Member
Messages
28
Reaction score
0
Points
1
UPDATE : I have changed my code to use pathinfo('filename', PATHINFO_EXTENSION) instead of mime_content_type as a workaround.
I am not sure if this a very good solution and would still appreciate an update.
 

davenote

New Member
Messages
28
Reaction score
0
Points
1

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
all three free-hosting servers are using PHP version ==> 5.4.27 <==
 

davenote

New Member
Messages
28
Reaction score
0
Points
1
Status
Not open for further replies.
Top