Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP - get_browser() results
    primarykey
    data
    text
    <p>I'm using the <code>get_browser()</code> function, and I installed the latest <code>php_browscap.ini</code> file from <a href="http://tempdownloads.browserscap.com/" rel="nofollow">http://tempdownloads.browserscap.com/</a>, updated my <strong>php.ini</strong> file to reflect the new location.</p> <p>Here's my simple code I've gleaned from PHP's site:</p> <pre><code>&lt;?php echo $_SERVER['HTTP_USER_AGENT']; echo "&lt;br&gt;"; echo "&lt;br&gt;"; $browser = get_browser(null, true); print_r($browser); ?&gt; </code></pre> <p>And the result is this:</p> <pre><code>Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 Array ( [browser_name_regex] =&gt; �^mozilla/5\.0 \(.*windows nt 6\.1.*wow64.*\).*gecko/.*firefox/21\..*$� [browser_name_pattern] =&gt; Mozilla/5.0 (*Windows NT 6.1*WOW64*)*Gecko/*Firefox/21.* [parent] =&gt; Firefox 21.0 [platform] =&gt; Win7 [platform_version] =&gt; 6.1 [win32] =&gt; [win64] =&gt; 1 [comment] =&gt; Firefox 21.0 [browser] =&gt; Firefox [version] =&gt; 21.0 [majorver] =&gt; 21 [minorver] =&gt; 0 [beta] =&gt; 1 [frames] =&gt; 1 [iframes] =&gt; 1 [tables] =&gt; 1 [cookies] =&gt; 1 [javascript] =&gt; 1 [javaapplets] =&gt; 1 [cssversion] =&gt; 3 [alpha] =&gt; [win16] =&gt; [backgroundsounds] =&gt; [vbscript] =&gt; [activexcontrols] =&gt; [ismobiledevice] =&gt; [issyndicationreader] =&gt; [crawler] =&gt; [aolversion] =&gt; 0 ) </code></pre> <p>I'm seeing a weird character in the <strong>[browser_name_regex]</strong> section.<br> Is that expected?</p> <p>Also, I</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload