Re: [NEWBIE GUIDE] For the benefit of new members
| From: | Andrew Ballard | Date: | Sat, 17 Nov 2007 03:41:32 +0000 |
| Subject: | Re: [NEWBIE GUIDE] For the benefit of new members | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264736@lists.php.net to get a copy of this message | ||
On Nov 16, 2007 10:30 AM, Peter Ford <pete@justcroft.com> wrote:
>
> >
> > I was all ready to jump on Point #6 to disagree until I read the
> > next paragraph, updating that with the correct information. PHP can
> > find out the OS of the system on which the browser is running.
> >
>
> Strictly speaking, PHP can only find out what the browser tells it - that
> includes the OS. I could quite easily hack the browser info string sent by (at
> least one of) my browsers to pretend I was using some horrible Windows rubbish...
>
>
I use the User-Agent Switcher add-on for Firefox for this. It's so
easy I don't even really consider it a "hack" -- it's a "feature". :-)
With it, I can not only change the UserAgent string sent in web page
requests, but I can also change the values of the userAgent, appName,
appVersion, platform, vendor and vendorSub properties of the built-in
navigator object in JavaScript.
Andrew