How do I use get_browser functions in my php?

get_browser is a php function that tells what the user's browser is capable of [1].

You can place php.ini in your account and add this capability. You can get the latest php.ini file for php4 from your control panel or from our FAQ pages.

Once you have placed the php.ini in the appropriate folder, please edit php.ini and uncomment this:

browscap = browscap.ini

Now you need browscap.ini which you can download from [2] "php_browscap.ini
Use only with PHP!" A special version of browscap.ini for PHP users only!

Please download that file, rename it to browscap.ini and place it somewhere in your account as referenced from the php.ini file.

References:
[1] http://php.net/get_browser
[2] http://browsers.garykeith.com/downloads.asp

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

What is the path to my home directory?

When you configure a cgi script for any server, it may ask you to set variables such as the base,...

Is php5 available? How do I use php5 alongside php4?

All shared servers have php5 along with php4. New servers are being setup with PHP5 as default...

How do I provide streaming - Audio / Video ?

We DO NOT have Real Audio server software running on our servers. However, you can stream Real...

PHP4 end of life announcement, what do I need to do?

php.net has posted this announcement 13-Jul-2007:Today it is exactly three years ago since PHP 5...

What is PHP and how do I use it?

PHP is a powerful, server-side scripting language that can be used to extend the functionality of...