[OT] Platform-specific web page

Andre Garzia soapdog at mac.com
Mon Mar 27 16:55:21 EST 2006


Sarah,

can you check the User-agent header of the HTTP request. It shows  
info like this:

my Firefox sends:

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1)  
Gecko/20060111 Firefox/1.5.0.1

my Safari sends:

Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9  
(KHTML, like Gecko) Safari/417.9.2

So I guess you can check for "Macintosh" in there... :-)

Cheers
andre


On Mar 27, 2006, at 6:46 PM, Sarah Reichelt wrote:

> Hi all,
>
> Does anyone have the relevant HTML/PHP/Javascript to determine the OS
> of a web page visitor and display the relevant screen shot. I want to
> have a web page that shows one of my Rev apps, but I would like it to
> show the correct screen shot (Windows or Mac) depending on the system
> that has requested the page.
>
> I'm sure there is a way to do this and PHP is next on my list of
> things to learn :-) but I was hoping somebody would have done it
> already and could point me in the right direction.
>
> Thanks,
> Sarah
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list