response content

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
feiticeir0
Forum Newbie
Posts: 8
Joined: Tue Nov 05, 2002 1:33 pm
Location: Castelo Branco, Portugal

response content

Post 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 !!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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() )
Post Reply