note 34743 added to function.get-browser
| From: | bishop at rack1 dot php dot net | Date: | Tue, 05 Aug 2003 16:46:53 +0000 |
| Subject: | note 34743 added to function.get-browser | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53438@lists.php.net to get a copy of this message | ||
PHP is sensitive to characters outside the range [ A-Za-z0-9_] as values in .ini files. For example
browser=Opera (Bork Version)
causes PHP to complain, as it doesn't like the parentheses.
If you place quotation marks around the values for all keys in the browscap.ini file, you'll
save yourself parsing problems. Do this in eg vi with %s/=\(.*\)/="\1"/g
You could of course use PHP itself to fixup the file. Exercise left to the reader.
----
Manual Page -- http://www.php.net/manual/en/function.get-browser.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34743
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34743&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34743&report=yes