
June 19th, 2001, 12:04 PM
|
|
Registered User
|
|
Join Date: Aug 1999
Posts: 9
Time spent in forums: 8 m 45 sec
Reputation Power: 0
|
|
|
Hi, this is what I was told:
i am working on
php4.0
redhat7.0
apache1.3.12-25
mysql 3.23.38
i 've added the following code in httpd.conf
AddType application/x-httpd-php .wml
AddType text/vnd.wap.wml .wml
then i saved a file with code of first example in the the default document
root /var/www/html as test.wml
:
<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card id="card1" title="Example 1">
<p>
<?php
$the_date = date("M d Y");
print $the_date;
print "<br/>Welcome to a PHP-enabled site!";
?>
</p>
</card>
</wml>
the result was an error:
end of xml processing instruction not found
As far as I can determine there should be no problem because I can get the code to work on my site but he can't get it to work on his.
|