parse error on fgets

From: Date: Wed, 05 May 2004 07:12:30 +0000
Subject: parse error on fgets
Groups: php.general 
Request: Send a blank email to php-general+get-185399@lists.php.net to get a copy of this message
Using PHP 4 with this code: if ($csvfile = fopen($csvpath, "r")) {
     while (!feof ($csvfile))
      {
        $filestring = fgets( $csvfile , 255);
      }
} I get a parse error on the line : $filestring = fgets( $csvfile , 255); Any ideas why this is happening? replacing it with fread also returns a parse error. Please reply to me directly as the digest takes awhile to get to me. -- Without deviation from the norm, progress is not possible. - Frank Zappa

« previous php.general (#185399) next »