View Full Version : search in file and retur as post

07-07-2007, 10:08 PM
Good day to you all,
I was wondering if it possible to read trough a file and find a certain sentence example :

<!-- 102930 -->

After that it's find, remember line number, (x)
find next time that sentence appears and remember line number (z),

Take everything from line x to z and send it to another script on another page as a $_post

I'm sure there is a way of doing so but I can't put the everything together.

Please help me !