I am trying to get my 6210 simulator for the nokia toolkit to interpret php, but note that on almost every page I read here on in the internet, whatever forum, I see varying header code to generate a wml file. I have several files that respond to php and generate wml that is correctly displayed by Opera (it has native wml), but although i have a couple of files that generate readable wml on the simulator, all the php code seems to be ignored. Is there no definitive correct way of coding for this purpose, or are the simulators just not up to it? I would be most grateful for any tips.
Geoffrey Walkiden
RE: php functions in wml cards
1970-01-01, 02:00#2
Your wml output device (simulator or real phone, or even Opera) will only display the wml text that is sent to it. So your php code must 'echo' the relevant wml deck info and prior to sending must send the appropriate http header to tell the wap gateway that it is wml content. For php the command would be
header("content-type: text/vnd.wap.wml; charset=iso-8859-1"