Re: [PHP] How to get a certain line from a file

2003-02-04 Thread Adam Voigt
Real easy. Assuming you've read the data of the page into $data: $data = "" $line = $data[36]; Just replace 36 with whatever line number you want. On Tue, 2003-02-04 at 13:50, The New Source wrote: How can I get a certain line from a file? If I get a file i

Re: [PHP] How to get a certain line from a file

2003-02-04 Thread Philip Olson
On Tue, 4 Feb 2003, The New Source wrote: > How can I get a certain line from a file? > > If I get a file in this way: > > $f = fopen("http://www.url.com/index.htm","r";); > > How can I get a certain line of the file index.htm? > > I would need to get the line number 232, or lines from 232 to