Page 1 of 1

response content

Posted: Thu Nov 14, 2002 7:01 pm
by feiticeir0
HI ! is there any code line in php that i can tell to my web server that the response will be wml.vnd.wap ?

example:

in JSP there is a code line that indicates that

response.contenttype ("text/wml");

is there any in php ?

thanks !!

Posted: Thu Nov 14, 2002 8:43 pm
by volka
there are no specialized functions in php for setting certain headers.
It's all done via header('what you want to add');
In you case it's

Code: Select all

header('Content-type: text/wml');
Note that headers must be sent before any document-output (unless you're using some kind of buffering, e.g. ob_start() )