The Little Guy Posted September 17, 2008 Share Posted September 17, 2008 How do I set up my browscap.ini file? here is what I tried: ini_set('browscap','../php_browscap.ini'); print_r(get_browser(null,TRUE)); Error: Warning: get_browser() [function.get-browser]: browscap ini directive not set Quote Link to comment Share on other sites More sharing options...
ratcateme Posted September 17, 2008 Share Posted September 17, 2008 have you read the notes on get_browser() at php.net Scott. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 17, 2008 Author Share Posted September 17, 2008 Yes, I can't get this... Quote Link to comment Share on other sites More sharing options...
ratcateme Posted September 17, 2008 Share Posted September 17, 2008 try if(!file_exists('../php_browscap.ini'){ echo "Browser file is not there or permissions say php cant view it"; exit; } Scott. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 17, 2008 Author Share Posted September 17, 2008 it echoed out "File found". I did this: if(!file_exists('../php_browscap.ini')){ echo "Browser file is not there or permissions say php cant view it"; }else{ echo "File found"; } Quote Link to comment Share on other sites More sharing options...
ratcateme Posted September 17, 2008 Share Posted September 17, 2008 try setting it like this var_dump(ini_set('browscap','../php_browscap.ini')); Scott. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 17, 2008 Author Share Posted September 17, 2008 bool(false) Quote Link to comment Share on other sites More sharing options...
ratcateme Posted September 17, 2008 Share Posted September 17, 2008 the ini_set is failing do you have access to the php.ini you could try to set it in there. Scott. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 17, 2008 Author Share Posted September 17, 2008 I finally got it! I modified my php.ini file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.