September
26
Posted on 26-09-2008
Filed Under (PHP, WebDev) by Dayson Pais

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
    }
?>

Read the rest of this entry »

(3) Comments    Read More   
September
01
Posted on 01-09-2008
Filed Under (PHP) by Dayson Pais

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:

quick test php

Read the rest of this entry »

(0) Comments    Read More