NameSilo

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

SpaceshipSpaceship
Watch

PoorDoggie

Soon to be RICHdoggie!VIP Member
Impact
18
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:
$browser = get_browser(null, true);
brings up this message:
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?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
0
•••
how do you get browser names, versions etc?
 
0
•••
0
•••
0
•••
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
 
0
•••

We're social

Spaceship
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back