I need to detect the browser type and execute functions based on the browser being used. I have seen posts in the archive that said "use get_browser()" or "use $HTTP_USER_AGENT", but this does not really help me create a working script.
I have tried:
echo $HTTP_USER_AGENT;
But I get no output.
Lets say that I wanted to detect any browser that was version 4.x or lower, and serve different pages based on the result. Can anyone give some sample code that would do this?
Thanks!