Sometimes you may want to display some part of the page/code only to IE users. Especially when you may be using some png fix javascript files or the famous iepngfix.htc for IE6 clients. This php function lets you identify an IE browser loading your page:
Example:
<?php if(detect_ie()) { //if internet explorer 6 being used, then apply IE png fix ?> <!--Begin IE PNG Fix--> <style type="text/css"> #shadow_tp, #shadow_btm { behavior: url(iepngfix.htc) } </style> <!--End IE PNG Fix--> <?php } ?>
Ever wanted to quickly test out a php function or a snippet of code without actually creating a new .php file & running it on a web server? In this article we are going to discuss how to display the output of some php code and display it in a mini command window using some basic batch files.
Preview: