My script:
analhit.php:
<?php
$data = implode("", file("/var/www/tudatos/guide.xml"));
$gzdata = gzencode($data, 9);
$fp = fopen("/var/www/tudatos/guide.xml.gz", "w");
fwrite($fp, $gzdata);
fclose($fp);
?>
And cron command:
0 5 * * * /usr/local/bin/php /var/www/tudatos/analhit.php
guide.xml ----> create gz file guide.xml.gz
Hy...