How to save memory when reading a file in Php ?

Posted by coolboycsaba on Stack Overflow See other posts from Stack Overflow or by coolboycsaba
Published on 2010-04-08T22:13:32Z Indexed on 2010/04/08 22:23 UTC
Read the original article Hit count: 139

Filed under:
|
|
|
|

I have a 200kb file, what I use in multiple pages, but on each page I need only 1-2 lines of that file so how I can read only these lines what I need if I know the line number?

For example if I need only the 10th line, I don`t want to load in memory all the lines, just the 10th line.

Sorry for my bad english!

© Stack Overflow or respective owner

Related posts about php

Related posts about memory