NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page no browscap.ini file... can I put one in public_html?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-07-2006, 04:55 AM THREAD STARTER               #1 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



no browscap.ini file... can I put one in public_html?


my host dosen't seem to have a browscap.ini file. (http://6yd.net/imagething) Is there any way I can upload that file to a directory in public_html or somewhere and then point my script to it?

PHP Code:
$browser get_browser(nulltrue); 
????: NamePros.com http://www.namepros.com/programming/225088-no-browscap-ini-file-can-i.html
brings up this message:
Quote:
Warning: get_browser(): browscap ini directive not set. in /home/tclayson/public_html/imagething/index.php on line 6
Thanks
Tom

ps: where would I get a browscap.ini file?
PoorDoggie is offline  
Old 08-07-2006, 06:44 AM   #2 (permalink)
NamePros Regular
 
Noobie's Avatar
Join Date: Feb 2006
Location: Montreal, Quebec, Canada
Posts: 324
Noobie is on a distinguished road
 



http://browsers.garykeith.com/downloads.asp

I heard browscap is a pain in the arss, never used it myself ...
__________________
Goldkey.com is a scam
What's your BMI? | Timestamp Generator
Noobie is offline  
Old 08-07-2006, 07:05 AM THREAD STARTER               #3 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



how do you get browser names, versions etc?
PoorDoggie is offline  
Old 08-07-2006, 07:46 AM   #4 (permalink)
NamePros Regular
 
Noobie's Avatar
Join Date: Feb 2006
Location: Montreal, Quebec, Canada
Posts: 324
Noobie is on a distinguished road
 



never really needed one except for detecting a little bbcode button script but that's it

http://www.google.com/search?sourcei...rowser+sniffer

Googling browser sniffer returns some results, but I can't say which is the best method
__________________
Goldkey.com is a scam
What's your BMI? | Timestamp Generator
Noobie is offline  
Old 08-07-2006, 11:32 AM   #5 (permalink)
NamePros Member
Join Date: Mar 2006
Posts: 62
123finder.com is an unknown quantity at this point
 



You need to set the browscap in php.ini, you should contact your host to update this setting. If you don't have much control (shared hosting), then another solution might be simpler to implement.

http://us2.php.net/manual/en/ref.misc.php#ini.browscap
__________________
123finder.com - Browse dictionary domains & 4-9 letter domains
123finder.com is offline  
Old 08-07-2006, 11:38 AM THREAD STARTER               #6 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



i found some code on the internet which basically disects $HTTP_USER_AGENT and figures it all out from there, with a bit of tweaking, it is working in the same way as browscap.ini, i think!

Thanks for all your help!

Tom
PoorDoggie is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:58 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger