August 3rd, 1999, 09:35 PM
Can I have something like IIS's browsecap
August 5th, 1999, 06:32 PM
Enlighten us non-IIS users - what does the "browsecap" function do??
August 5th, 1999, 08:58 PM
;-) actually, I am not IIS person either - see http://www.uroam.com for yourself.
Browsecap is a server-side module (ActiveX for MS IIS) that allows a server-side script to have info on different features of the browser used to view the site. The elegance of the solution is in the fact that it is driven by a data file containing description
for each and every browser in existence. This file is maintained by folks at Cyscape.
My idea was to find PHP3-based solution reusing Cyscape capabilities files or at least the one that could be driven by an externally maintained (hierarchichal) database.
August 6th, 1999, 10:30 PM
For some reason it's not documented well at php.net, but there's a function called get_browser(). The Core PHP Programming book touches on this a bit. The function relies on browscap.ini, which is available from http://php.netvision.net.il/browscap/ . Here's the example from the book:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
Syntax: object get_browser(string user_agent)
$browser = get_browser();
print("You are using " . $browser->browser . "<BR>n");
Hope that helps.