httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Coby" <>
Subject Re: [users@httpd] PHP vs. WAP vs. XML vs. MIME types (a multi-technology question...)
Date Fri, 25 Oct 2002 20:07:21 GMT
> Good idea, but this had the same effect as <?php echo "<?xml
> everything?>\n"; ?> did.  I think <? and ?> inside quotes inside PHP are
> safe anyway.  The real problem is currently that the output is being sent
> the wrong MIME type (probably text/html or something to do with PHP
> of text/vnd.wap.wml).

Ahh now I see!  You caught me, I wasn't paying attention at the beginning of
the thread :)

ok, try changing the header from within the php script:

header("Content-type: text/vnd.wap.wml");

This will replace the standard text/html MIME type that php echos.

Seems that php ignores the <? and ?> tags if they are in the string.  Good
call, I was assuming that they were special characters since they are picked
up from within comments.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message