Count No. of lines in file

by satheeshkumar 2012-07-14 14:56:54

Count No. of lines in file using php code,



$file = "filename";
$lines = count(file($file));
echo "There are $lines lines";
?>

Tagged in:

847
like
0
dislike
0
mail
flag

You must LOGIN to add comments