|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
XHTMLMP - Set reading wbmp image instead of jpeg and gif
Hi
I have written a code to first check the mobile browser ability if it can display gif or jpeg then to show those images otherwise to show wbmp images. When i browser site with my Nokia N70 i see wbmp images but it must display gif and jpeg images because N70 has support for these types and i can browse other sites like google to see coloured pictures. here is the code i am using PHP Code:
also when i browse the same site on online emulator for N70 (from Jabba sticky) it displays coloured pictures and not wbmp but when i browse from my N70 it displays wbmp image. what could be the best code to check the handset browser ability and then decide the image format? thanks
__________________
($tired) ? "working in PHP" : "PHP working in me"; PHP Manual | Free Email Based Contact Form | Free Guest Book | Free FAQs System | Backlink Checker FREE Scripts Directory and Resource Repository PHP,Apache,MySQL,Oracle,Linux,Telecommunications,Games and Cars Articles Download Free Videos From Youtube,Google Video,MySpace,iFilm etc |
|
#2
|
||||
|
||||
|
Perhaps the N70 accepts */* (the "all" setting ) - see internet explorers results?
What does a print_r on $_SERVER['HTTP_ACCEPT '] return for the phone? You code looks OK, so I don't know off hand why it doesn't work... however if you are only displaying a gif, just check for gif support. Maybe strpos or stripos would be more suited than stristr in the current scenario. Perhaps it has something to do with the image itself - maybe too many colors?
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ Last edited by jabba_29 : August 10th, 2007 at 09:06 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > XHTMLMP - Set reading wbmp image instead of jpeg and gif |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|