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

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
boom
Forum Newbie
Posts: 3
Joined: Mon Apr 10, 2006 6:11 am

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

Post 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?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

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

Post 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.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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).
User avatar
R4000
Forum Contributor
Posts: 168
Joined: Wed Mar 08, 2006 12:50 pm
Location: Cambridge, United Kingdom

Post 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...
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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?
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Yup, so I know that WAP == CRAP.

GPRS is getting there, but 3G is where it's at :)
User avatar
R4000
Forum Contributor
Posts: 168
Joined: Wed Mar 08, 2006 12:50 pm
Location: Cambridge, United Kingdom

Post 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
Post Reply