News Feed
Sections




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

Christian Weiske's Blog:
A MIME type for .php files
April 14, 2011 @ 09:17:06

Christian Weiske has a recent post to his site looking at something most PHP developers don't even think about when serving up their scripts - the MIME types for PHP files.

While setting some svn properties at work, we wondered about the correct MIME type for .php files.

He found several in the official IANA list including "text/php", "application/php" and "application/x-http-php" - all valid but none of them considered a standard. He talks about the ones supported by linux distributions (like Debian/Ubuntu) and some reasoning that might make "application/php" the best choice of the list. He points out some downsides to the choice, though, including the fact that something starting with "application/" should considered "machine readable" only despite PHP just being text.

0 comments voice your opinion now!
mime type application text iana linux machinereadable plaintext


blog comments powered by Disqus

Similar Posts

Lukas Smith's Blog: Making PHP 5.3 Happen

Security News: Open SUSE Update for PHP4/PHP5 Packages

Job Posting: National Auto Warranty Seeks PHP Web App Developer (Wentzville, MO)

Anthony Ferrara's Blog: Parameter Type Casting in PHP

Michelangelo van Dam: Bootstrapping ZF1 application in Apigilty


Community Events

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


laravel xdebug laravel5 install framework interview opinion series api language unittest introduction extension example voicesoftheelephpant php7 library podcast community release

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