Re: [NEWBIE GUIDE] For the benefit of new members

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 16, 2007 10:30 AM, Peter Ford <pete@xxxxxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux