In a script I'm working on, I'm using this block of code to convert a file's Date Modified as the filename for the output file:
#Ops stores the stat function ran on the previous input.
$Ops = (stat($DB))[9];
#Converts the date to a readable format
($sec, $min, $hour, $mday, $mon, $year, $wday...
Hello everyone. I have this code, originally courtesy of FireMyst, and I modified it. Originally it counted instances of user IP addresses from the records in log files. Now I want to get the addresses the users visited. I've got it pulling out the addresses and counting them, but I don't...
Hello everyone. What I want to do is go through a loop, and when it has gone through that loop one or more times, I want it to run a subroutine. The code I have so far is this:
print "\n\nPlease enter the name of the file to load: ";
$DB = <STDIN>;
chomp($DB);
INPUT: $Choices =...
Okay so I'm still wrestling with these log files. What I'm trying to do now is get it to go through and add up how long a user stayed on a page. The log is formatted like this:
19.33.44.63 2003/08/05 0009:38:11 PASSED http://www.slashdot.com
110.25.12.6 2003/08/05 0009:38:11 PASSED...
Well I'm convinced I'm using the split function wrong if my output is anything to go by. What I want to do is take lines formed exactly like the following (with the exception that there's multiple spaces between the columns in the real thing):
10.1.3.4 08/13/2003 14:18:30 PASSED...
I don't understand this problem. This script is meant to read a text file from a content filter and let you query it by any text input. For some reason, it won't return the right date modified date in the section where I ask it to call for it. I want to use that as part of the filename when it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.