|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
browser ==> perl
Can i check the browser version type with perl ?
I want in to display a text if its not compitable I dont want to use javascript.. only if i have to. and it is not possible with perl. and can i check flash or flash version ? tnx in advance... ![]() |
|
#2
|
|||
|
|||
|
Doesnt anyone know this
If its not possible... can some still reply ? please
tnx in advance |
|
#3
|
|||
|
|||
|
Browser Type
Hello,
I got this little script from www.cgi101.com. With some changes it might be able to do what you want. Good Luck, Paul #!/usr/bin/perl print "Content-type:text/html\n\n"; if ($ENV{'HTTP_USER_AGENT'} =~ /MSIE/) { print "You seem to be using Internet Explorer!\n"; } elsif ($ENV{'HTTP_USER_AGENT'} =~ /Mozilla/) { print "You seem to be using Netscape!\n"; } else { print "You seem to be using a browser other than Netscape or IE. \n"; } print "\n"; print"<body></html>\n"; |
|
#4
|
|||
|
|||
|
tnx... now i can... work it out
![]() |
|
#5
|
|||
|
|||
|
In the past I made a script like this too (it was in javascript), but I found that the User-Agent field is'nt always accurate. Some browsers, I know IE does, change this field to look like they are build on Mozilla (but they are not).
I dont know how this can be solved in perl, in Javascript you should also look at the navigator.appName. Hope this helps, Nimr0d |
|
#6
|
|||
|
|||
|
yes i am aware of the problem... hehe tnx
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > browser ==> perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|