|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
can any one please tell me the exact method to run php script in my wml file . i'm new at this . i use wamp web server and winWAP as wap browser . i ve goen thru many examples but cant get it correctly .
1.what changes to httpd file? 2.how n what to send as header? 3.how to save file i.e. ".php" or ".wml"? 4.any changes to WAP browser? plz help ..... fast ..... thanx ![]() |
|
#2
|
||||
|
||||
|
The easiest way, without any server configuration is to make a file with the extension .php
PHP Code:
There check it through your server URL. See the WAP Resources - most if this is in there already. And welcome ![]()
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
thanx for reply
i tried ur code but its not working as well. when i run ur code thru my WAMP server , my winWAP opens up automatically gives this error: Could not get URL http://localhost/php/devtest.php HTTP Error : 404 (Not Found) i know php and wml separately but dnt know how to combine them , i have read many of urs theards and tried following it but getting stuck evey time ........ i ve following code, got this code frm one of the thread here : Code:
<?php
Header("Content-type: text/vnd.wap.wml");
Header("Cache-Control: no-cache, must-revalidate");
Header("Pragma: no-cache");
echo '<?xml version="1.0"?>';
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="hello" id="c1">
<p>
Hello wml!
</p>
<p>
<?php echo "Hello php!"; ?>
</p>
</card>
</wml>
i have WAMP5 and winWAP . i have done no changes to httpd file in Apche folder of WAMP. i saved the code as php and wml : as php - i can see "hello wml" and "hello php" both wneh i run this php file thru WAMP server using IExplorer along with following errors : Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\php\hello.php:2) in C:\wamp\www\php\hello.php on line 3 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\php\hello.php:2) in C:\wamp\www\php\hello.php on line 4 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\php\hello.php:2) in C:\wamp\www\php\hello.php on line 5 And as wml - then my winWAP give me this error: The Parser could NOT parser the current Deck. Please check the WML code |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > WML - Php in wml , help fast |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|