browser specificity

Any problem with PHP can be disscused here
Post Reply
jasondsouza
Posts: 348
Joined: Thu Jan 12, 2006 8:24 pm
Contact:

browser specificity

Post by jasondsouza »

can we make a program which will display text in a page only if a person uses a specific browser.


--jasondsouza
ME working on a very new site. (Coming soon)
Come to my web Site
SHAdmin
Posts: 2089
Joined: Sat Dec 18, 2004 11:28 am
Contact:

Post 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
delivi
Posts: 454
Joined: Sun Mar 26, 2006 1:24 pm
Contact:

Post by delivi »

Thanx for the link it was very useful.

Can we use PHP insted of Java Script to identify the browser.
jeremy90
Posts: 440
Joined: Mon Jun 26, 2006 3:15 pm

Post by jeremy90 »

cool, thanks for the link
tswpn
Posts: 212
Joined: Sat May 13, 2006 9:51 am

Post 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]
mohumben
Posts: 82
Joined: Thu Sep 15, 2005 9:45 pm

Post 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.

Code: Select all

define('I_LOVE_PHP', true);
rwshthn
Posts: 500
Joined: Tue Sep 26, 2006 1:39 am
Contact:

i want to ask you question

Post by rwshthn »

how you make icon for your web site
annamarie
Posts: 66
Joined: Tue Dec 26, 2006 2:18 pm

Post 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
Post Reply