|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
WAP and PHP - doesn't like the header('Content-type: text/vnd.wap.wml\n\n');
Hello,
I've been trying to get this working, but no luck. My phone is a Samsung m500 I've coded a page on my server to check to see if the header is for text/vnd.wap.wml, and if so, attempt to create the wml page. If I include the php code: header('Content-type: text/vnd.wap.wml\n\n'); my phone browser returns a msg: The requested page cannot be displayed. If I exclude the header line above, it displays the page, however, the <anchor> tag is not selectable. If anyone can suggest a fix, or tell me what's wrong, I'd appreciate it. You can view the page on your phone at: (URL address blocked: See forum rules) This is the code I've setup for the wml: PHP Code:
Thanks, Robert |
|
#2
|
||||
|
||||
|
PHP Code:
This will just add the characters, not create new lines - though I don't know why you are trying to create new line. If you really want to add new lines to the header, then you must use "double quotes" - PHP Code:
PHP Code:
see strings for more. And make sure you validate your WML. See the WAP Resources thread for a tools list. Welcome to Dev Shed, enjoy your stay ...
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
Thank you jabba_29
,I had noticed the ' vs " issue with my \n characters, and had fixed that. Once I added the ,TRUE to the header() stmt, that resolved the issue. I did use the link for the validators for some other issues, I appreciate the links. I'm not doing this any more Grateful for your help. Robert |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > WAP and PHP - doesn't like the header('Content-type: text/vnd.wap.wml\n\n'); |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|