Re: [SOLVED][PHP] Browser Detection another page

From: Date: Fri, 13 Feb 2004 01:17:43 +0000
Subject: Re: [SOLVED][PHP] Browser Detection another page
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-177561@lists.php.net to get a copy of this message
Richard, Thanks for that, looks too simple ;-) It's exactly what I want for this particular application. Thanks Col "Richard Davey" <rich@launchcode.co.uk> wrote in message news:574951858.20040213010214@launchcode.co.uk... > Hello PETCOL, > > Friday, February 13, 2004, 12:57:59 AM, you wrote: > > P> I have been able to work out how to detect the browser I'm looking for. > P> Then I need to take the user to another page. > > P> if (strstr($HTTP_USER_AGENT,'Windows CE')) { > P> //go to the Windows CE version of the site > P> } else { > P> // go to or Stay on the large version > P> } > > if (strstr($HTTP_USER_AGENT, "Windows CE")) > { > Header("Location: > http://www.yoursite.dom/ce_page.php"); > exit; > } > else > { > Header("Location: > http://www.yoursite.dom/another_page.php"); > exit; > } > > -- > Best regards, > Richard > mailto:rich@launchcode.co.uk

« previous php.general (#177561) next »