PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

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 August 3rd, 1999, 09:35 PM
sokolsky
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Can I have something like IIS's browsecap
on Apache+PHP3+Linux?

Thanks

Reply With Quote
  #2  
Old August 5th, 1999, 06:32 PM
jpenix
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Enlighten us non-IIS users - what does the "browsecap" function do??

Reply With Quote
  #3  
Old August 5th, 1999, 08:58 PM
sokolsky
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
;-) actually, I am not IIS person either - see http://www.uroam.com for yourself.

Browsecap is a server-side module (ActiveX for MS IIS) that allows a server-side script to have info on different features of the browser used to view the site. The elegance of the solution is in the fact that it is driven by a data file containing description
for each and every browser in existence. This file is maintained by folks at Cyscape.

My idea was to find PHP3-based solution reusing Cyscape capabilities files or at least the one that could be driven by an externally maintained (hierarchichal) database.

I think this could make a wonderful PHP3 project. I realised the need for it when newly released client-side JavaScript client sniffer (http://developer.netscape.com/docs/examples/javascript/browser_type.html) failed on me ;-(

Thanks

Reply With Quote
  #4  
Old August 6th, 1999, 10:30 PM
scottcs
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
For some reason it's not documented well at php.net, but there's a function called get_browser(). The Core PHP Programming book touches on this a bit. The function relies on browscap.ini, which is available from http://php.netvision.net.il/browscap/ . Here's the example from the book:

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>

Syntax: object get_browser(string user_agent)

<?
$browser = get_browser();
print("You are using " . $browser->browser . "<BR>n");
if($browser->javascript)
{
print("Your browser supports JavaScript.<BR>n");
}
?>[/quote]

Hope that helps.

- Scott



------------------

-----
Scott Stevenson
Maxify.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Q: browsecap-like feature in PHP3?

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap