For sending HTML document information such as content-encoding, charset, date, last-modified, etc we can equally use PHP header header() OR HTML meta http-equiv <meta http-equiv=... />. Which is practically better? Can anyone elaborate the pros and cons of both methods?
I wonder if each of them has a better performance for specific application (e.g. one is better for defining charset and the other for content-encoding?!?
Use real HTTP headers
<meta http-equiv<meta http-equivThere is an argument to be made for including the charset information via a meta element as well (since that will be preserved if the document is saved and the copy is then accessed from the filesystem instead of over HTTP).