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?
is it possible to find out if mobile phone support png, gif.
Moderator: General Moderators
Re: is it possible to find out if mobile phone support png,
Many phones have js disabled, so that won't help much.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?
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.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
Sounds like you should take your own adviceMaugrim_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.
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).
- R4000
- Forum Contributor
- Posts: 168
- Joined: Wed Mar 08, 2006 12:50 pm
- Location: Cambridge, United Kingdom
http://wurlf.sourceforge.net
thats EXACTLY what you want...
its a HUGE xml file with everything TONS (and i mean TONS) of phones support...
thats EXACTLY what you want...
its a HUGE xml file with everything TONS (and i mean TONS) of phones support...
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
- R4000
- Forum Contributor
- Posts: 168
- Joined: Wed Mar 08, 2006 12:50 pm
- Location: Cambridge, United Kingdom
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
}
?>