note 113524 added to function.get-browser
| From: | wind_born at yahoo dot com | Date: | Thu, 24 Oct 2013 19:07:53 +0000 |
| Subject: | note 113524 added to function.get-browser | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197317@lists.php.net to get a copy of this message | ||
Your system may have problems parsing browscap.ini if the value fields are not quoted (see
bishop's note). This is often true even for the PHP specific version of the published
browscap.ini. The sed command below adds quotations to the values:
sed '/^[a-zA-Z0-9].*=[a-zA-Z0-9]/s/=\(.*\)/="\1"/' $inFile > $fixedFile
If you're using a script to fetch the latest browscap.ini, consider adding this operation to
the script.
----
Server IP: 72.52.91.12
Probable Submitter: 72.52.91.12
----
Manual Page -- http://php.net/manual/en/function.get-browser.php
Edit -- https://master.php.net/note/edit/113524
Del: integrated -- https://master.php.net/note/delete/113524/integrated
Del: useless -- https://master.php.net/note/delete/113524/useless
Del: bad code -- https://master.php.net/note/delete/113524/bad+code
Del: spam -- https://master.php.net/note/delete/113524/spam
Del: non-english -- https://master.php.net/note/delete/113524/non-english
Del: in docs -- https://master.php.net/note/delete/113524/in+docs
Del: other reasons-- https://master.php.net/note/delete/113524
Reject -- https://master.php.net/note/reject/113524
Search -- https://master.php.net/manage/user-notes.php