A
Anonymous
Guest
I am a little new to PHP programming, most of what I have learned are from prior examples. I have a file, C:\ups.log in which I would like to run a PHP script on daily with php.exe that will just parse all the information in it and tally up the individual matches. For instance:
C:\ups.log contains the following:
0041374123AAAAAAA03
0041374128AAAAAAA08
0041374128AAAAAAA07
0041374123AAAAAAA06
0041374128AAAAAAA09
Notice the first 6 digits are always the same, its the 7-10th digits that are relevant (i.e 4123). Once this PHP script parses this file I would like a simple tally showing in the PHP.exe prompt:
4128 : 3
4123 : 2
that 4128 had 3 results and 4123 had 2. Any advice or knowledge of a similar script you can direct me to is very much appreciated.
C:\ups.log contains the following:
0041374123AAAAAAA03
0041374128AAAAAAA08
0041374128AAAAAAA07
0041374123AAAAAAA06
0041374128AAAAAAA09
Notice the first 6 digits are always the same, its the 7-10th digits that are relevant (i.e 4123). Once this PHP script parses this file I would like a simple tally showing in the PHP.exe prompt:
4128 : 3
4123 : 2
that 4128 had 3 results and 4123 had 2. Any advice or knowledge of a similar script you can direct me to is very much appreciated.