note 15714 rejected from function.header by jimw

From: Date: Thu, 27 Sep 2001 18:54:26 +0000
Subject: note 15714 rejected from function.header by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-18384@lists.php.net to get a copy of this message
I haven't seen people automatically computing the MIME type for the file being served. All I see here is something like header("Content-type: image/gif"); Well, if I can serve a multitude of files & file types, how can I look at the file name (which I dynamically compute) & determine its MIME type ? Is there a PHP function for that ? Or maybe I'll have to implement my own ? thanks !

« previous php.notes (#18384) next »