Browser Agent and other details

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Browser Agent and other details

Post by alex.barylski »

Edit: Did a quick Google and it doesn't appear possible without JS :(

I know you can get some details from the browser inside PHP, without using Javascript...

But is there a way to retreive screen resolution??? Without using Javascript or similar hack?

Cheers :)
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Post by Mordred »

No.
Install a local proxy (ala proxomitron) and inspect the headers coming from your browser. That's what you can get with PHP without JS.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

yea I figured that :( bummer
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

All I have to say is try to completely avoid browser sniffing except for stat tracking. It will cause you more troubles and your clients more troubles than it is worth otherwise.
Post Reply