Показать сообщение отдельно

  #4  
Старый 05.08.2009, 00:28
BlackSun
Познавший АНТИЧАТ
Регистрация: 01.04.2007
Сообщений: 1,268
Провел на форуме:
10046345

Репутация: 4589


По умолчанию

PHP код:
<?php
    $input 
$GLOBALS['f'];
    if (!
file_exists($input))
    {
        die(
'OMG! File not found =\\'"\n");
    }
    
    
$output_fname dirname($input). '/'basename($input'.php'). '_bz.php';
    
$output fopen($output_fname'w');
    
$content shell_exec('php -nw '$input);
    
$content bzcompress(' ?>'$content9);
    
    
fputs($output'<?'' eval(bzdecompress(base64_decode("'base64_encode($content). '"))); ?>');
    
fclose($output);
    
    
$before filesize($input);
    
$after filesize($output_fname);
    echo 
'> Before compress : '. ($before 1024). " Kb\n";
    echo 
'> After compress  : '. ($after 1024). " Kb\n";
    echo 
'> Compress ratio  : '. (($before $after) * 100) / $before"%\n";
?>
> Before compress : 124.427734375 Kb
> After compress : 36.3046875 Kb
> Compress ratio : 70.8226725478%
 
Ответить с цитированием