PDA

View Full Version : getting parts of a string



Cheap Bastard
June 28th, 2001, 10:35
how could i extract the Browser (+version#) and OS from $HTTP_USER_AGENT ?

in PHP.
thanks

Cheap Bastard
June 28th, 2001, 10:38
also, in what variable would the resolution be?

lucifer
June 28th, 2001, 13:07
it's a string

I'm not sure if there are rules that have to be followed

strpos() might help you

or reg expressions

Cheap Bastard
June 28th, 2001, 13:35
hmm... i'll go wade through the manual and see if anything else comes up

thanks lucifer :)

lucifer
June 28th, 2001, 13:47
wading through the manual is the thing to do but I know sometimes I can't find the easy stuff :)