> try this....
> system ("/usr/bin/wc -l $userfile> t.txt");
> $fd =fopen('t.txt', 'r');
> echo ($buffer);
Or... if you really just want to count the number of lines in a
file... do this:
$ary = file("filename.txt");
print "There are " . count($ary) . " lines in filename.txt";
This offers the advantage of having the file loaded into an array,
since... chances are you want to do something with it after you spit
out how many lines are in it.
Daniel J. Lashua
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]