Appending to a file

From: Date: Wed, 10 Jul 2002 16:45:01 +0000
Subject: Appending to a file
Groups: php.general 
Request: Send a blank email to php-general+get-106869@lists.php.net to get a copy of this message
I'm just curious if there's a function that allows you to see how many lines there are in a file. I could just set up a while(!feof($fp)) { fgets($fp); count++; } obviously, but I'm curious if there's a function built in like "flines($fp)" that I haven't noticed at php.net?

« previous php.general (#106869) next »