Advertisement

01.23.2005 at 03:00AM PST, ID: 21285013
[x]
Attachment Details

Browser Type Detect --> URL Forwarding...

Asked by praefectus in PHP Scripting Language

Tags: , , ,

I have seen a lot of PHP scripts on the net for "browser detect" but what I need is some simple code that:

1.  Detects browser type;
2.  Forwards to appropriate URL

I would like to do something like:

if (HTTP_USER_AGENT = %7650
     if else P900
     if else n-gage
     if else 6600 // all of these represent phones
  Go to url : http://myurl/mobil

if other
    go to: http:?myurl/home.thm

Any code for doing this?  I'm trying to detect normal PCs vs. Mobile devices ...


Start Free Trial
[+][-]01.23.2005 at 08:11AM PST, ID: 13115431

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: browser, detect, type, url
Sign Up Now!
Solution Provided By: Puppeter
Participating Experts: 1
Solution Grade: A
 
 
[+][-]01.23.2005 at 12:33PM PST, ID: 13116750

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32