©2009 lixlpixel phpsnippets.net

choose a PHP file to highlight

this Tool will parse your PHP code and display it with syntax coloring and all functions linked directly to their explanations in the PHP manual. see example below :
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 

<?

// authorize IP
if(isset($_POST['usrpw']))
{
    if(
$_POST['usrpw'] == $cur_pw)
    {
        
$uip = $_SERVER['REMOTE_ADDR'];
        
$str = '<'.CHR(63).' $sec_ip = "'.$uip.'"; '.CHR(63).'>';
        
        
$fd = fopen ($src_file, 'w');
        
$data = fwrite ($fd, $str);
        
fclose ($fd);

        
$sec_ip = $uip;
        
        echo
'<b>your current IP ('.$uip.') is now authorized</b>';
    }else{
        echo
'<b>this password doesn\'t match</b>';
    }
}

?>