infinite loop problem

From: Date: Tue, 08 Aug 2000 15:36:49 +0000
Subject: infinite loop problem
Groups: php.general 
Request: Send a blank email to php-general+get-10699@lists.php.net to get a copy of this message
hi, I'm using preg_match for pattern matching and am trying to search a large file. The following code if (preg_match ("/wcb/,$myFile,$matches)) { do this } results in an infinite loop. The file never ends! Is there a way when reading a file in to set an EOF marker? Or is there another way to set a flag with preg_match at the EOF? thanks! Maria Maria B. Erb Web Developer Keene State College 603-358-2340 mail address: MS 2707 / CMIT 229 Main Street Keene, NH 03435

« previous php.general (#10699) next »