Hi Guys,
Im just starting out with PHP and im trying to write a script which will count the number of lines in a given text file. I figure ill have to use fopen to open the text file, but where from there. I guess I could make each of the lines part of an array (not sure of the code) and count it that way but theres probably an easier way. I figure this whole script could be done in about 5lines, can someone please help me out?
Thanks a lot,
Stewart