Zubrag.com
May 20, 2012, 11:09:09 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Log File not getting saved  (Read 2892 times)
sosaited
Newbie
*
Posts: 9


« on: June 28, 2007, 11:30:24 pm »

HI.

I've set up the script as told, but the log file is not getting created. I've tried many things (changed filename of the log file to full path, tried to save in a folder with "public write" permissions etc), but it just doesn't work. THough please note, that I cancel the downloads before they finish just to check if the log file was created, or will it be created once the file has been completely downloaded?

Thanks

Logged
psp
Newbie
*
Posts: 5


« Reply #1 on: June 29, 2007, 12:02:37 am »

chmod to 777.
create a 1kb dump text file and use it for testing. you cancel the download might not create a log.
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #2 on: June 29, 2007, 03:43:12 pm »

psp is right, script will not update log file if file download canceled.

If you want to count all downloads (even canceled) then remove following code from the download.php

    if (connection_status()!=0) {
      @fclose($file);
      die();
    }
Logged
sosaited
Newbie
*
Posts: 9


« Reply #3 on: June 30, 2007, 01:11:35 am »

I removed those lines, but it still didn't save the cancelled download.
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #4 on: July 02, 2007, 07:15:50 am »

It also depends on how server is set up. Maybe it is set up to stop php script automatically if user breaks connection.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC