note 86352 deleted from function.get-browser by danbrown

From: Date: Tue, 14 Oct 2008 16:07:39 +0000
Subject: note 86352 deleted from function.get-browser by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-145351@lists.php.net to get a copy of this message
Note Submitter: Ignas ---- Wanted to tell what half of all array values given in this article is wrong. You can get latest php_browscap.ini version here: http://browsers.garykeith.com/downloads.asp Here is latest variables from ini file and what they output Browser=string Version=integer MajorVer=integer MinorVer=integer Platform=string Alpha=boolean Beta=boolean Win16=boolean Win32=boolean Win64=boolean Frames=boolean IFrames=boolean Tables=boolean Cookies=boolean BackgroundSounds=boolean CDF=boolean VBScript=boolean JavaApplets=boolean JavaScript=boolean ActiveXControls=boolean isBanned=boolean isMobileDevice=boolean isSyndicationReader=boolean Crawler=boolean CssVersion=intiger supportsCSS=boolean AOL=boolean aolVersion=intiger Means what there is no such variable like "css". Get browscap_module.php here: alexandre.alapetite.net/doc-alex/php-local-browscap/index.en.html here is example how to get css: <? include "bowscap_module.php"; //Get array $browser = get_browser_local(null, true, "./php_browscap.ini"); echo "CSS Support: ".$browser['supportscss']; //Will boolean echo "CSS version: ".$browser['cssversion']; //Will intiger ?>

« previous php.notes (#145351) next »