|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Printing PHP content to WML
I've been working with WML for a few hours now figuring it out as I go here but I can't seem to get things to print out using PHP.
This is what I have: wmlHeader.php -------- <?php header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); echo ("<?xml version='1.0' encoding=\"ISO-8859-1\"?>"); print("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">"); ?> quote2.wml -------- <?php require('wmlHeader.php'); ?> <wml> <card id="quote2" title="PSU QB.com"> <p> <img src="/images/psuqb.wbmp" /> </p> <p> Quote It!<br/> test- <?php echo ("-test\n"); ?> </p> </card> </wml> Now it loads just fine on my phone here but the last php echo there won't print to the screen. Print doesnt work either. Any idea why? PHP has to be printing b/c it is what is printing the header info which is needed for the card to load right? I'm scratching my head on this one. Any help would be greatly appricated. |
|
#2
|
|||
|
|||
|
figured it out, server config problem, thx
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Printing PHP content to WML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|