Thread: Search string
View Single Post
Old May 31st, 2005, 03:01 PM
Mantis Mantis is offline
Friend of Wrox
Join Date: Dec 2004
Location: London, London, United Kingdom.
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default Search string

Something quite easy (if you know how to.. which officialy I don't!!)

I'm looking at isolating the browser name from the HTTP_USER_AGENT ..
Anyone know how to do this?

I'm looking for something like:
if (stringsearch($Sname)="FireFox") {firefox=1;}
if (stringsearch($Sname)="Netscape") {Netscape=1;}
if (stringsearch($Sname)="MSIE") {MS=1;}