Hi all.
I'm a somehow rusty on PHP, so maybe this is a dumb question...
I'm playing a bit with WAP developing, and found a simple problem right at
the beginning.
All the WAP pages that the editor (WAPTor) generate begin with
<?xml version="1.0"?>
That, <? is also the PHP tag for the beginning of the PHP scripting...
I've solved with this:
<?
echo("<?xml version=\"1.0\" ?>\n");
echo("<!-- created by WAPtor (http://www.wapdrive.net/) -->");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.or g/DTD/wml_1.1.xml\">\ n\n");
?>
But I'd like to know if there is a bettere way to do this...
Thx in advance.
I'm a somehow rusty on PHP, so maybe this is a dumb question...
I'm playing a bit with WAP developing, and found a simple problem right at
the beginning.
All the WAP pages that the editor (WAPTor) generate begin with
<?xml version="1.0"?>
That, <? is also the PHP tag for the beginning of the PHP scripting...
I've solved with this:
<?
echo("<?xml version=\"1.0\" ?>\n");
echo("<!-- created by WAPtor (http://www.wapdrive.net/) -->");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.or g/DTD/wml_1.1.xml\">\ n\n");
?>
But I'd like to know if there is a bettere way to do this...
Thx in advance.
Comment