Re: browser detect and redirect
| From: | David Dorward | Date: | Sun, 08 May 2005 13:01:18 +0000 |
| Subject: | Re: browser detect and redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214691@lists.php.net to get a copy of this message | ||
Ross wrote:
> I want to redirect anyone not using ie 4+ as there browser.
>
> Is this possible with php?
You could examine the user agent string, but that can be (and is in many
cases) spoofed.
Its generally better to just write code which doesn't depend on the use of a
specific browser. Its very rare that something really needs IE (At least I
assume that "+" means "higher" rather that "better").
--
David Dorward <http://blog.dorward.me.uk/>
<http://dorward.me.uk/>
Home is where the ~/.bashrc is