Python/cgi Was: Very useful message -- Hah!
Andrei Zmievski
andrei at ispi.net
Tue Dec 14 18:28:04 EST 1999
In article <3854a300.15783926 at news.demon.co.uk>,
andy at robanal.demon.co.uk (Andy Robinson) wrote:
> Out of curiosity, at work I have to control headers for customers in
> different parts of Asia; stuff like
> 'content-type=text/html; charset=ShiftJIS'
> which varies depending on the data I subsequently write out. If PHP
> builds this into the language, do you lose the ability to control the
> headers when you actually need to?
Hi,
PHP provides a header() function you can call to set any header you
want. If it's not called then the content type is assumed to be
text/html.
-Andrei
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list