| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) | ||||
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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:
Tom ps: where would I get a browscap.ini file? | ||||
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Montreal, Quebec, Canada
Posts: 324
![]() | http://browsers.garykeith.com/downloads.asp I heard browscap is a pain in the arss, never used it myself ... |
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Montreal, Quebec, Canada
Posts: 324
![]() | 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 |
| |
| | #5 (permalink) |
| NamePros Member Join Date: Mar 2006
Posts: 62
![]() | 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 |
| |
| | THREAD STARTER #6 (permalink) |
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |