Re: Silly question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote:
nevermind. There is a function: fgetcsv();

Ewww!

http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/


> Curtis Maurand wrote:
> > 
> > 
> > Hello,
> > I'm trying to run through an apache log
> file in an attempt to
> > get all of the user agents.
> > 
> > The question is how do I split the
> > string? I can't
> seem to find a workable delimiter. Each
> > section of the
> file is enclosed in quotes and that should be helpful, but
> > it
> doesn't seem to be. I can't seem to set the delimiter to '"
> "' I can't
> > seem to find any good
> > examples,
> either.
> > 
> > I can't split on spaces, because the user
> > agents generally have spaces in them.
> > 
> > I was
> trying to use
> > explode. 
> print_r(explode('" "', $line);
> > 
> > Any help
> > would be appreciated.
> > thanks,
> > Curtis
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux