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 !!
response content
Moderator: General Moderators
- feiticeir0
- Forum Newbie
- Posts: 8
- Joined: Tue Nov 05, 2002 1:33 pm
- Location: Castelo Branco, Portugal
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'sNote that headers must be sent before any document-output (unless you're using some kind of buffering, e.g. ob_start() )
It's all done via header('what you want to add');
In you case it's
Code: Select all
header('Content-type: text/wml');