[Athens-pm] <USERCOUNT>

Michael K. Nacos nacos at eureka.edu.gr
Mon Mar 3 13:20:08 CST 2003


just had a look at the code. if $times_been_here_file is only meant to contain a number in the first line, there's no need for while. you could write something like: $times_been_here = <USERCOUNT> + 1; close USERCOUNT; # line 160
i suppose i was thinking in terms of server logs. for example, you could add a new line with data such as date, IP address etc. everytime a user logs on then count the lines to find out how many times they've had access.

does your script create the right files, e.g. $times_been_here_file? is the data ok in these files? how do you know it's an infinite loop? do you test using the command line or a browser? please supply more info.

#line 99: please consider $times_been_here = times_been_here(); instead.
namespaces get out of hand real fast.

michael




More information about the Athens-pm mailing list