Forum Moderators: open

Message Too Old, No Replies

User from which mobile phone company?

3 companies, 2 pict file types viewable.

         

waynemac

4:52 pm on Oct 20, 2004 (gmt 0)

10+ Year Member



Greetings all, I run a forum and information website in Japan.

I am setting up a mobile site that is accessed by 3 different mobile phone companies (docomo, skyweb and ezweb).

I want to determine where the incoming visitors from so to dish up different pict files as some use png and not gif and vis-a-versa. The common pict file type is jpeg and thats too big for what Im doing.

Ive looked around but cant find what Im looking for.

AND, from there, how would I encode it to pull different file types? Is there an "if this browser then access image folder A, if not then B" script?

Im new to this so any input would be appreciated.

Thanx in advance, Wayne in Japan

ogletree

5:21 pm on Oct 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use server side scripting. ASP and PHP can detect browser type.
In PHP use:
logwriter_handlevar("HTTP_USER_AGENT","");

In ASP use:
Request.ServerVariables("HTTP_USER_AGENT")

then you show what picture you want acording to what that returns.