title: PHP: Read from File and Count
body: <p>i am struggling with this:</p>
  
  <p>I'd like to parse the nagios.dat file with php, looking for each line:</p>
  
  <p><strong>"problem_has_been_acknowledged=X"</strong> and count how often the value behind is 1.</p>