View Single Post
  #17 (permalink)  
Old 03-01-10, 01:24 PM
adrianbj adrianbj is offline
Newbie Coder
 
Join Date: Feb 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Just wanted to add that unfortunately the "preg_match('/\/Count [0-9]+/', $line, $matches" approach actually mis-reports sometimes, so you cannot rely on my two-fold approach. Even if it returns a number other than zero, it does not mean it is going to be correct. It usually is, but I have had at least half a dozen time now when it has been wrong. Sometimes off by only a few, but other times not even close!
Reply With Quote