WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old January 10th, 2005, 07:22 PM
wavesonics wavesonics is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: USA, NJ
Posts: 8 wavesonics New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 8 m 11 sec
Reputation Power: 0
Send a message via ICQ to wavesonics Send a message via AIM to wavesonics Send a message via Yahoo to wavesonics
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.

Reply With Quote
  #2  
Old January 10th, 2005, 07:38 PM
wavesonics wavesonics is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: USA, NJ
Posts: 8 wavesonics New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 8 m 11 sec
Reputation Power: 0
Send a message via ICQ to wavesonics Send a message via AIM to wavesonics Send a message via Yahoo to wavesonics
figured it out, server config problem, thx

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Printing PHP content to WML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway