Zubrag.com
September 21, 2018, 04:18:26 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to set mime type in php  (Read 15802 times)
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« on: November 08, 2006, 01:37:59 PM »

Code:
<?php

// set mime type example for .mp4
$mtype "video/mp4";

// set header
header("Content-Type: $mtype");
?>


Note: no output is allowed before the header statement (you will receive "headers already sent" or "output started in ..." error).

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC