Page 1 of 1

browser specificity

Posted: Thu May 18, 2006 11:59 am
by jasondsouza
can we make a program which will display text in a page only if a person uses a specific browser.

Posted: Thu May 18, 2006 1:28 pm
by SHAdmin
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

Posted: Tue Jul 11, 2006 6:18 pm
by delivi
Thanx for the link it was very useful.

Can we use PHP insted of Java Script to identify the browser.

Posted: Tue Jul 11, 2006 6:21 pm
by jeremy90
cool, thanks for the link

Posted: Tue Jul 11, 2006 6:26 pm
by tswpn
delivi wrote:Thanx for the link it was very useful.

Can we use PHP insted of Java Script to identify the browser.
Yes:

Code: Select all

<?php
echo $_SERVER&#91]

Posted: Sun Jul 23, 2006 10:22 pm
by mohumben
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.

i want to ask you question

Posted: Wed Dec 06, 2006 11:41 am
by rwshthn
how you make icon for your web site

Posted: Tue Dec 26, 2006 4:57 pm
by annamarie
try icontool.com, or google it
there many software to convert ur image into .ico ext
or find web who give free icon list to download free