View Full Version : Reading Specific Lines of a Webpage

10-25-2012, 05:37 AM
Is there a way to read a specific line from a webpage using PHP?
I found a code readfile('http://domain.com'); but it reads the whole webpage.

10-25-2012, 11:07 AM
You may use file_get_contents() to read the contents to a variable and then iterate through to to reach the specific line.