Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

How to view .gz formated log files.
Log analyzer, log viewer,

This code helps you to view log files from, server using web server, within .gz format or, .gz.%s (date formated).

'.$entry.'';
                        }
}



function zcat($filename,$cmd="")
{


        $cmd = $cmd ? "zcat $filename | $cmd" : "zcat $filename";
        echo "CMD:$cmd";
        $filename=htmlentities($filename);
        echo "Filename:$filename";
    //$output = $cmd ? shell_exec("zcat $filename | $cmd"): shell_exec("zcat $filename");
        $output = shell_exec($cmd);
        //$output=shell_exec("zcat $filename");
        echo "Before replace:$output";
        $output = str_replace("n", "
", $output); echo "After Replace:$output"; return $output ? $output : "No Data Found"; } function execute($cmd) { shell_exec("$cmd"); } //function to display the command box function displayCmdBox($filename) { ?>