you can use fopen() to open a file, local or remote
fgets() to read lines from that file
follow up the contents with various methods
regular expressions... or string handling functions (much documentation for these in www.php.net)
and display the results with the echo command