Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 7th, 2001, 10:54 AM
rayman rayman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 10 rayman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to rayman
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...

Reply With Quote
  #2  
Old July 8th, 2001, 07:56 AM
rayman rayman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 10 rayman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to rayman
Doesnt anyone know this

If its not possible... can some still reply ? please


tnx in advance

Reply With Quote
  #3  
Old July 8th, 2001, 01:58 PM
TigerTermite TigerTermite is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 12 TigerTermite User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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";

Reply With Quote
  #4  
Old July 8th, 2001, 02:00 PM
rayman rayman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 10 rayman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to rayman
tnx... now i can... work it out

Reply With Quote
  #5  
Old July 9th, 2001, 02:16 AM
nimr0d nimr0d is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Netherlands
Posts: 7 nimr0d User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #6  
Old July 9th, 2001, 10:27 AM
rayman rayman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 10 rayman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to rayman
yes i am aware of the problem... hehe tnx

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > browser ==> perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway