PHP - Get_browser()
I recently read a forum posting regarding detecting the browser being used by the user. The following is a quote from that post;
Quote from: Daniel0 on July 09, 2006, 01:45:10 AM Code: [Select] $browser = get_browser(null, true); $browser = $browser['parent']; This would get the browser name and version (i.e. Firefox 1.5). How is this applied in code to 'echo' the browser, and is this the best execution of browser detection? Similar TutorialsCan anyone explain this? Warning: get_browser() [function.get-browser]: browscap ini directive not set in /home/albany/public_html/players_dir/dirupdate.php on ..... I'm trying to determine the browser so I can juggle my html a little bit. |