Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problem with function readgzfile

    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!

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


  • #2
    New Coder
    Join Date
    Aug 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Problem solved!
    I replaced it with a system call.

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



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •