note 115072 added to tutorial.useful

From: Date: Thu, 22 May 2014 12:03:16 +0000
Subject: note 115072 added to tutorial.useful
Groups: php.notes 
Request: Send a blank email to php-notes+get-199591@lists.php.net to get a copy of this message
Please note that Internet Explorer 11 no longer contains MSIE in its user agent string, for example on Windows 8 with IE11 I get the following: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko So if you want to include a test for IE11, the code above changes to: <?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE || strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== FALSE) { echo 'You are using Internet Explorer.<br />'; } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 86.45.254.23 ---- Manual Page -- http://php.net/manual/en/tutorial.useful.php Edit -- https://master.php.net/note/edit/115072 Del: integrated -- https://master.php.net/note/delete/115072/integrated Del: useless -- https://master.php.net/note/delete/115072/useless Del: bad code -- https://master.php.net/note/delete/115072/bad+code Del: spam -- https://master.php.net/note/delete/115072/spam Del: non-english -- https://master.php.net/note/delete/115072/non-english Del: in docs -- https://master.php.net/note/delete/115072/in+docs Del: other reasons-- https://master.php.net/note/delete/115072 Reject -- https://master.php.net/note/reject/115072 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199591) next »