Well I figured it out.
Thought i'd share it with youjust incase it's useful for someone else.
#Just some general opening the file shite.
$file = fopen("$filename", "r");
#loop for going through each line.
#If i was really picky i'd pop the whole #file onto one line to allow for the <title>
#tags being on different lines.
while (!feof ($file))
{
$line = fgets($file, 1024);
#finds anything betwen title tags
#and prints it
if(eregi(".<title>(.)</title>.*", $line, $regs))
{
$title=$regs[1];
print $title;
}
}