Page 2 of 2

Posted: Mon Aug 18, 2003 1:10 pm
by nigma
Ahh, I am not able to test this but this should work(assuming you have previously opened the file):

Code: Select all

while (!feof($fp))
{
  $line = fgets($fp, 1024);
  if (preg_match("/Name=.*/", $line, $results)
  {
    $lineValues = explode("=", $line);
    print $lineValuesї1];
  }
}