...

View Full Version : problem with function readgzfile



ngungo
07-19-2008, 03:24 PM
I am working on a log reader web app that you can see it here:
user name: ray
password: pistol
webpage: http://tetet.net/sys/

It works fine and I am pretty happy. But when I installed in a different website: http://vietditru.com/sys/ (same user name and password) the function readgzfile does not seem working. I thought it was memory limit so I increased it. It still does not work.

Any hints will be appreciated. Thanks!



function displayArchiveLOG() {
ini_set('memory_limit','16M'); // not working
$filename = logsDIR.$_SESSION['type'];
echo '<pre>';
readgzfile($filename);
echo '</pre>';
}

ngungo
07-19-2008, 04:39 PM
Problem solved!
I replaced it with a system call.



function displayArchiveLOG() {
$filename = logsDIR.$_SESSION['type'];
echo '<pre>';
system('gzip -dc '.$filename);
echo '</pre>';
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum