PHP and wap

A

Anonymous

Guest
is there a special php that works on wap? i tried with the normal one, and for some strange reason the server didnt procces the php bits. it should proccess even if the file is a .wml file, shouldnt it?
 
ok, i know:
Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions. Always use google before asking stupid questions.
20 times, thats enough isnt it?
 
well it wasnt that easy after all. i still cant get my wap phone to read wap pages with php. it just says "bad gateway" (or something like that) which i have learnt means "error on page" (as i get that when i have an error on the page). is there something i have to do to make php wap workable. and does anyone have any good tutorials on php and wap?
 
ruturajv said:
:lol: :lol: :lol:

Pejone he fears you!!!! :lol:


me ? might be WiZARD =)

1) You want to process wml files in php?
http://www.google.com/search?q=htaccess+addtype+php&ie=windows-1251&hl=ru&lr=
you need to add wml to procces like php file

2) You want generate a wml files?
ask this man about WAP Class, that he have... tony2001 (at) phpclub.net

3) wrong header?
wml must get xml header as i know.


at next time please describe a problem =)
 
the problem is that when i use wap pages with php that i find on the internet, my phone jsut sais: No gateway reply. i think this means that theres an error in the script, coz i got that before and when i fixed the script it worked

the script that i used is below:
Code:
enter.wml

<?php 
header("Content-type: text/vnd.wap.wml"); 
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"; 
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" 
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
?> 
<wml> 
<card id="main" title="Log ind"> 
<p> 
Username: 
<br /> 
<input title="user" name="username" /> 
Password: 
<br /><input title="pass" name="password" type="password" /> 
<anchor> 
Login 
<go href="check.wml" method="post"> 
<postfield name="username" value="$(username)"/> 
<postfield name="password" value="$(password)"/> 
</go> 
</anchor> 
</p> 
</card> 
</wml>


check.wml

<?php 
header("Content-type: text/vnd.wap.wml"); 
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"; 
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" 
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
?> 
<wml> 
<card id="varcheck" title="VARS"> 
<p> 
<?php 
if(isset($_POST["username"])) { 
echo $_POST["username"]; 
} 
echo"<br/>"; 

if(isset($_POST["password"])) { 
echo $_POST["password"]; 
} 
?> 
</p> 
</card> 
</wml>
 
amazing! that .htaccess thing worked. now i only get :
Code:
document start expected (before or at line 4)
 
changed from:
Code:
<?php 
header("Content-type: text/vnd.wap.wml"); 
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"; 
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" 
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
?> 

to

<?php 
header("Content-type: text/vnd.wap.wml"); 
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"; 
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" . " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
?>
now i get file format unknown
 
Back
Top