Re: [PHP] Re: HTTP_USER_AGENT and preg_match

2001-01-23 Thread John Hinsley
Teodor Cimpoesu wrote: > I've got a nice browsecap.ini file from php4win.de. > You can then simply use get_browser() [ listed under Miscellaneous functions] Hi Teodor I can't find it! I went to the site and downloaded the complete php_for_windows install thinking that I could unzip the lot in L

Re: [PHP] Re: HTTP_USER_AGENT and preg_match

2001-01-23 Thread Teodor Cimpoesu
Hi John! On Tue, 23 Jan 2001, John Hinsley wrote: > Got it in the end. It should be: > > > > > if ((preg_match("/Mozilla/i", "$agent")) && (preg_match("/Gecko/i", > "$agent"))) { > $result = "You are using Netscape 6 or a later version of Mozilla."; > > > > But the thought occurs t