Setting the Mime Type allows you to tell the browser what type of response that it is going to receive. This is useful for returning non html results like file downloads, xml and JSON. //Setting a XML File Type in PHP $mtype = "text/xml"; header("Content-Type: " . $mtype); //Setting a File Download Type in PHP […]
Continue reading...
Monday, June 22, 2009
Comments Off on Setting MimeType in PHP