Page 1 of 1

is it possible to find out if mobile phone support png, gif.

Posted: Mon Apr 10, 2006 6:14 am
by boom
i'm doing wap page, where you can dowload images, so i need to know, i phone support image type.
is it possible to find out with php or java script if mobile phone support png, gif, jpg formats?

Re: is it possible to find out if mobile phone support png,

Posted: Mon Apr 10, 2006 8:17 am
by Roja
boom wrote:i'm doing wap page, where you can dowload images, so i need to know, i phone support image type.
is it possible to find out with php or java script if mobile phone support png, gif, jpg formats?
Many phones have js disabled, so that won't help much.

However, on the php side, you can use a tool like http://phpsniff.sourceforge.net to check whether it supports images. As a general statement, the vast majority of mobile phones support png, gif, and jpg.

Posted: Mon Apr 10, 2006 8:58 am
by Maugrim_The_Reaper
Be careful how you use the term WAP. Most recent phones will support XHTML as standard over the original text only WAP material. My own phone support all the usual image formats and the model is 2 years old.

Posted: Mon Apr 10, 2006 10:37 am
by Roja
Maugrim_The_Reaper wrote:Be careful how you use the term WAP. Most recent phones will support XHTML as standard over the original text only WAP material.
Sounds like you should take your own advice ;)

WAP consists of multiple standards (WML, WAP-HTML (a subset of XHTML), and more). Notably, all of them support some form of graphic by reference - not text only. (WML is sent in text, as is HTML, but describing it as "text only" confuses the situation).

Posted: Mon Apr 10, 2006 5:32 pm
by R4000
http://wurlf.sourceforge.net

thats EXACTLY what you want...
its a HUGE xml file with everything TONS (and i mean TONS) of phones support...

Posted: Tue Apr 11, 2006 5:17 am
by Maugrim_The_Reaper
Help, being scorched...;)

I'm still in the mode of equating WAP with the original WML documents. Anyone else own a mobile in the 90's?

Posted: Tue Apr 11, 2006 5:38 am
by Grim...
Yup, so I know that WAP == CRAP.

GPRS is getting there, but 3G is where it's at :)

Posted: Tue Apr 11, 2006 6:28 am
by R4000

Code: Select all

<?php
if($mobile_internet < CON_3G){
?>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="no1" title="New Phone">
<p>Get a new phone!</p>
</card>
</wml>
<?php
} else {
?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Proud</title></head><body>
<p>
Your doing your country proud!
</p></body></html>

<?php
}
?>
hehe, dont ask my why i did that :P but heh