News Feed
Jobs Feed
Sections




News Archive
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

Job Posting: Jupiter Hostings Seeks Web Application Programmers (Santa Clara, CA)

PHP North West: Lorenzo Alberton: Profile your PHP application and make it fly

Chris Hartjes' Blog: Converting Legacy Apps to CakePHP, Part 3

PHPClasses.org: Responsive AJAX applications with COMET

PHPMaster.com: Openbiz Cubi: A Robust PHP Application Framework, Part 1


Community Events











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


framework zendframework2 opinion language interview code community series conference tool development release podcast example introduction database composer testing object functional

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