I am having trouble POSTing from a WAP script to a wml file with PHP in it. I feel like it is something wrong with the way I am using the header function.
The first of my .wml file that the data is POSTed to looks like:
<?php
header("Content-type: text/vnd.wap.wml");
echo("<?xml version=\"1.0\"?>\n");
echo("<!DOCTYPE wml PUBLIC\"-//WAPFORUM//DTD WML 1.1//EN\"\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n");
?>
<wml>
For reference, my httpd.conf looks like:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .wml
#for the cgi binary (you can use that one compiled with force cgi redirect too)
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
My srm.conf file looks like:
# WAP MIME Types
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlc .wmlc
AddType application/vnd.wap.wmlscriptc .wmlsc
The error that Apache returns is:
Error 405 Method Not Allowed.
I have turned off short_open_tag in the php.ini file as suggested by documentation of the header() function on www.php.net
Please Please help! I have been working on this non-stop for 4 days, and exhausted as many resources as possible.
NOTE: I am running a Windows 98 machine
Thanks for your time!
Very worn out,
Jesse