Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-01-2004, 08:11 PM #1
- Join Date
- Jan 2003
- Thanked 0 Times in 0 Posts
Finding the Amount of Lines in a file...
I was wondering, how would I go about finding the amount of lines in a file? I have a file, and it has a lot of stuff. Ex:
How would I find out that there are 6 lines in this file, using php?
Last edited by l3vi; 05-01-2004 at 08:46 PM.
05-02-2004, 02:31 AM #2
you should note that that may not be suitable to be used on every page with large files, as the file function reads the entire file, and if it has to be done many times it will slow down your system..