Do I need to declare content type/charset in both HTML and PHP?

mic123

New Member
If the content type and character set are declared in the PHP header, is there a reason to have them again in the usual HTML DTD?\[quote\]\[code\]<?php ob_start( 'ob_gzhandler' ); header('Content-type: text/html; charset=utf-8'); ?> // here<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> // and here...\[/code\]\[/quote\]
 
Back
Top