Re: File extension for PHP's serialization format?

From: Date: Fri, 27 Oct 2006 00:27:04 +0000
Subject: Re: File extension for PHP's serialization format?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-243715@lists.php.net to get a copy of this message
Hamish Lawson wrote:
I have a web application (not written in PHP) that can return data in various formats, including JSON and PHP's serialization format. At the moment my URL scheme looks like this:
    staff/engineering?format=json
but I'd like to switch to using a file extension to denote the format:
    staff/engineering.json
But what file extension should I use for PHP's serialization format? Obviously it can't be .php - aside from being inaccurate (it's not PHP code), using this extension would probably trigger the web server into trying to run a (nonexistent) PHP script.
You can rewrite the url using mod_rewrite or some such variant to handle this. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#243715) next »