# Reading Part of File

**URL:** <https://forum.kirupa.com/t/reading-part-of-file/224514>\
**Category:** programming\
**Created:** [May 2, 2007, 11:13pm UTC](https://forum.kirupa.com/t/reading-part-of-file/224514 "2007-05-02T23:13:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pod\_clock](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@pod\_clock](https://forum.kirupa.com/u/pod_clock)\
**Post date:** [May 2, 2007, 11:13pm UTC](https://forum.kirupa.com/t/reading-part-of-file/224514/1 "2007-05-02T23:13:42Z")

</div>

I’m reading all of the files in a directory via file\_get\_contents() and concantenating them into a master file. My script works fine, but now I’d like to skip the first two lines of each file. I don’t think I can use the offset parameter of file\_get\_contents, because my server’s version of php is 4.3.1.  
How would I read everything after the 2nd return. TIA (I’m new to php).
