get_browser function

From: Date: Sat, 10 Jun 2000 03:12:06 +0000
Subject: get_browser function
Groups: php.dev php.general 
Request: Send a blank email to php-dev+get-20870@lists.php.net to get a copy of this message
Has anybody successfully used the get_browser function in PHP4? I'm using the browscap.ini from http://asptracker.com/browscap.zip (which is considerably more complete than the one linked to on the php website). I have verified that the browscap.ini file is being successfully parsed. But this line: zend_hash_find(&browser_hash, "Default Browser", sizeof("Default Browser"), (void **) &agent)==FAILURE is failing (zend_hash_find returns FAILURE). I'm not entirely sure why. Does anybody have any clues? Any help would be appreciated (or another way of reliably detecting the browser.) Thanks, Peter -------------------------------------------------- Peter D. Kovacs KnowPost.com LLC Lead Engineer peter@knowpost.com --------------------------------------------------

« previous php.dev (#20870) next »