[nycphp-talk] Determining mime type of data not a file
Chris Merlo
chris at theyellowbox.com
Wed Jan 25 10:26:52 EST 2006
On 1/25/06, Scott Mattocks <scott at crisscott.com> wrote:
> I am looking for a way to determine the mime type of an image that is
> held in memory and does not come from a file.
[...]
function spitOutImage($imageToGet)
> {
> if (cache::isCached($imageToGet)) {
> $image = cache::getImage($imageToGet);
Scott:
If that cache class is something you wrote, just add a mimeType data field
to it, and store the mime type when you cache the image. (If it's not, then
my apologies for not being all that familiar with the PEAR repositories.)
-c
--
chris at theyellowbox.com
http://www.theyellowbox.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20060125/9ee1a597/attachment.html>
More information about the talk
mailing list