|
Posted by Cleverbum on 06/07/06 08:49
Alan Little wrote:
> Carved in mystic runes upon the very living rock, the last words of
> <Cleverbum@hotmail.com> of comp.lang.php make plain:
>
> > I'm not really accustomed to string manipulation and so I was wondering
> > if any of you could be any help i speeding up this script intended to
> > change the format of some saved log information into a CSV file while
> > removing duplicate records.
> > The main problem is that the script currently takes about 20 seconds to
> > execute, and were it to take much longer it would time out.
> >
> > Below is the script itself, and then some example lines from the log
> > file it processes:
> >
> > <?
> > [snip]
> > ?>
>
> Whew!
>
> How about an example of the output you're trying to achieve? That might
> be easier.
>
> --
> Alan Little
> Phorm PHP Form Processor
> http://www.phorm.com/
Here we go then:
jpgme.co.uk:,25/May/2006:13:04:47,0100,81.157.187.150,-,-,GET,/,HTTP/1.1,200,5736,-,Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),
jpgme.co.uk:,25/May/2006:13:04:47,0100,81.157.187.150,-,-,GET,/images/title.gif,HTTP/1.1,200,5237,http://www.martinsphotos.co.uk/,Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),
jpgme.co.uk:,25/May/2006:13:04:48,0100,81.157.187.150,-,-,GET,/images/but1.gif,HTTP/1.1,200,696,http://www.martinsphotos.co.uk/,Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),
jpgme.co.uk:,25/May/2006:13:04:48,0100,81.157.187.150,-,-,GET,/images/vline.gif,HTTP/1.1,200,85,http://www.martinsphotos.co.uk/,Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),
[Back to original message]
|