Browscap

Started on the old forum in September 2009 · view the original in the archive · old links redirect here

3 replies · 532 views · started 17 years ago · 1 min read

3 participants
kiss Senior · 294 posts #1

Hi,need help about php_browscap.ini how to install and how it working if someone know.I want to detect on my site all browser name and version include for mobile.Thank you.

www.inbuzunar.mobi -Your mobile portal pocket

spiderwebs Developer · 193 posts #2

Hello there,

put this to your php.ini file

browscap = /path/to/your/php_browscap.ini 

then Using the get_browser() function To start, open your text editor and create the following file:

<?php
$browser = get_browser(null, true);
?>

<pre>
<?php print_r($browser); ?>
</pre>

now you can use these things

$browser['platform'], $browser['browser'] and $browser['majorver'],
$browser['issyndicationreader'] and $browser['ismobiledevice']

hope this will work if you have further questions then ask 🙂

E107 Security Team Leader Proudly Support AccountLab Plus Billing Software

Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com

kiss Senior · 294 posts #3

I have a problem...my server activate the browscap function,the source in phpinfo it: extra/lite_php_browscap.ini but it not show full get_browser(); http://mfws.ro/a/index.php even i added in folder /a/ the file php.ini with browscap = extra/lite_php_browscap.ini

www.inbuzunar.mobi -Your mobile portal pocket

shushant Developer · 207 posts #4

kiss wrote: I have a problem...my server activate the browscap function,the source in phpinfo it: extra/lite_php_browscap.ini but it not show full get_browser(); http://mfws.ro/a/index.php even i added in folder /a/ the file php.ini with browscap = extra/lite_php_browscap.ini

Google get_browser() Replacement

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close