browser specificity
-
- Posts: 348
- Joined: Thu Jan 12, 2006 8:24 pm
- Contact:
browser specificity
can we make a program which will display text in a page only if a person uses a specific browser.
Every http request that the browser sends to the web server contains a header which contains even the name of the 'user-agent' which actuall is the name and the version of the browser that the client is using. You need to trap this from the header to accordingly create your program.
So it is possible to create a program to display a text only depending upon the user/client's browser.
However i guess this will be easier to be done at the client end instead of doing it on the server end. For this you can easily use javascript. For further details on how to use javascript to detect the browser and accordingly display text, you may refer to the link here http://www.javascriptkit.com/javatutors/navigator.shtml
So it is possible to create a program to display a text only depending upon the user/client's browser.
However i guess this will be easier to be done at the client end instead of doing it on the server end. For this you can easily use javascript. For further details on how to use javascript to detect the browser and accordingly display text, you may refer to the link here http://www.javascriptkit.com/javatutors/navigator.shtml
Yes:delivi wrote:Thanx for the link it was very useful.
Can we use PHP insted of Java Script to identify the browser.
Code: Select all
<?php
echo $_SERVER[]
Note that get_browser will only work when you have browscap.ini set.
Also note these detection methods are not perfect, no matter what you use.
Also note these detection methods are not perfect, no matter what you use.
Code: Select all
define('I_LOVE_PHP', true);
i want to ask you question
how you make icon for your web site