Skip to main content
Topic: Browser sniffing (Read 2065 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Browser sniffing

Attachments download:
Code: [Select]
		// Different browsers like different standards...
[...]
elseif (isBrowser('opera'))
header('Content-Disposition: ' . $disposition . '; filename="' . preg_replace_callback('~&#(\d{3,8});~', 'fixchar__callback', $real_filename) . '"');
I wonder if this is still relevant now that Opera uses WebKit (is it webkit?).
Bugs creator.
Features destroyer.
Template killer.

Re: Browser sniffing

Reply #1

Yeah, TBH it should act like the JS does, calls it opera for opera <= 12 and chrome otherwise.  The php side will id it as Opera vs Chrome but thats not good for the css tags unless someone wants to add #opera in a few spots as well.