Posted by Fred Atkinson on 10/10/74 11:19
Is there a PHP function that returns the number of lines
(records) in a file?
Example: There is a file called data.dat when I have data to
use with a PHP script.
Is there a function that will count the number of lines in
data.dat and return to the browser screen only the number of lines
(records) in that data file.
Coding this into the PHP page:
There are currently <php function> records in the database.
would yield this on the browser:
There are currently 1054 records in the database.
Fred
Navigation:
[Reply to this message]
|