Hello, There is a non working part at my website if you visit website using Internet Explorer. So instead of showing that non working part white i decided to make a condition statement so if visitor is using internet explorer they will see another stuff there instead of real content. So the code should be like if user agent is internet explorer show this content else the real content But i couldn't manage to make it as condition for useragent. Can someone help me please?
Try this Create a file called ifiexplore.php and place the content that you want iexplore users to see Create a file called main.php and place the content all the other browsers will see then on main page paste this code <?php if ($IE && $IEV <= 5.5) { include('ifiexplore.php'); } else { include('main.php'); } ?> PHP:
try this ... <?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { // ...do IE stuff... } else { // the real content. } ?> PHP: