News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Johannes Schluter's Blog:
A hidden gem in PHP 5.3 fileinfo
December 17, 2008 @ 09:35:59

Johannes Schluter has pointed out a "hidden gem" for PHP 5.3 in his latest blog post - the fileinfo extension.

This series is not meant to be complete but some personal choice, these blog postings are also no replacement for documentation, but just pointers. My goal is that you try out 5.3 right now so we can fix bugs as soon as possible before releasing it The NEWS file has a quite short entry for my first subject: Added fileinfo extension as replacement for mime_magic extension. (Derick)

He looks at one situation where the extension could come in very handy - getting the content type of the file for a download push - as well as why its better than the older mime_content_type function.

0 comments voice your opinion now!
php5 gem fileinfo mimecontenttype function extension hidden


blog comments powered by Disqus

Similar Posts

Denis de Bernardy\'s Blog: php4, php5 and php6 - thoughts and stats

DevShed: Performing Basic Tasks with MySQL 4.1 and Above, using mysqli with PHP 5

Derick Rethans' Blog: Twig extension

DevShed: Enforcing Object Types in PHP - Using the PHP5 instanceof Operator

PHPit.net: PHP 5 Objects, Patterns and Practice


Community Events

Don't see your event here?
Let us know!


laravel5 library laravel podcast unittest community framework example introduction voicesoftheelephpant release series video interview api opinion language version php7 list

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework