Sony Ericsson / Sony : GPRS, WAP, MMS and Email setup : PHP Wap page errors on T68i
>
New Topic
>
Reply<
Esato Forum Index
>
Sony Ericsson / Sony >
GPRS, WAP, MMS and Email setup
> PHP Wap page errors on T68i
Bookmark topic
We are setting up a wap push service using a php page which has the wml embedded in it so the page we push is a .php file to the device....
Does t68i support .php files, as right now it gives the error "something is wrong with the page you tried to access. choose another link".
If it anyone knows what we need to fix it so that the wml gets displayed properly it would be a great help.
[ This Message was edited by: AMC on 2003-07-04 17:34 ]
--
Posted: 2003-07-04 18:33:51
Edit :
Quote
you can use php to render wml but not the other way around
--
Posted: 2003-07-04 18:46:22
Edit :
Quote
ok, im not terribly technical, but Im posting on behalf of my dev whos on a different time zone and is stuck with this as the page works fine on many other devices including nokia series 60 and and sharp GX10 but not the T68i!
the page looks something like this:
?php (this post wont display the proper tag)
(bit of php)
?>
wml text page (including pulling in results from the php code)
(bit more php)
?>
[ This Message was edited by: AMC on 2003-07-04 18:20 ]
--
Posted: 2003-07-04 19:14:01
Edit :
Quote
In the beginning of php code:
header( 'content-Type: text/vnd.wap.wml');
Working?
--
Posted: 2003-07-04 21:57:43
Edit :
Quote
i have the header in place.
the strange thing is the code works fine on all other devices, except the sony ones.
header("Content-type: text/vnd.wap.wml");
echo("\n");
echo("\n\n");
?>
So pls tell me what else to do as i have followed strict guidelines in the wml code also (else it wouldnt have worked in the other devices)
Await something.
AMC
--
Posted: 2003-07-05 13:33:50
Edit :
Quote
the WML code PHP is spitting to the device is incomplete.
a minimal WML code should have:
<wml>....</wml>
<card>...</card>
a WML page is called a "card" and a collection of WML pages is called a "deck"
try this:
<wml>
<card id="card1" title="Welcome">
<p mode="wrap">
Hello, Mobile World!
</p>
</card>
</wml>
--
Posted: 2003-07-05 13:58:31
Edit :
Quote
Hello Arnold,
I have the wml working fine ..no issues with it..works fine in all other devices..
Actually the board didnt display the code that i pasted
this is the error :
This is the error :
"
something is wrong with the page you tried to access. choose another link
"
AMC
--
Posted: 2003-07-05 14:31:37
Edit :
Quote
when pasting code, check "disable html on this post"
--
Posted: 2003-07-05 14:41:12
Edit :
Quote
I dont use any...
echo("n");
...just empty lines.
This works for my T68i
<?
header( 'content-Type: text/vnd.wap.wml');
echo '<?xml version="1.0"?>';
echo '
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="cache-control" content="no-cache" />
</head>
<card title="php to Wap" id="info">
<p>
Testing txt...
</p>
</card>
</wml>
';
?>
Any help? You can test it...
http://www.saunalahti.fi/aweb/t68_phpwml.php
[ This Message was edited by: artzi on 2003-07-05 18:47 ]
[ This Message was edited by: artzi on 2003-07-06 14:07 ]
[ This Message was edited by: artzi on 2003-07-06 14:08 ]
--
Posted: 2003-07-05 19:40:41
Edit :
Quote
This is the actual code :
<?php
///there is code here which queries the db and searches the user agent.
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\n");
?>
<wml>
<card id="card2">
<p>
<br/>
</p>
<?
if($disp)
{
?>
<p><? echo $disp ?><br/></p>
<?
}
else
{
?>
<p>
Please download your order.
</p>
<p><anchor>Download<go href="<?php echo $mypath ?>" /></anchor><br/></p>
<?
}
?>
</card>
</wml>
<?
//functions here
?>
--
Posted: 2003-07-07 11:24:46
Edit :
Quote
New Topic
Reply