It gets kind of awkward when you are storing all your data in files. I would put the titles in the database, and while I was at it I would transfer ALL the data into the database then generate the hymns pages on the fly.
To extract the title, though, you could use something along these lines:
<?php
$page="your_file.ext";
$fcontents = file($page);
foreach($fcontents as $line){
if (eregi ("<title>(.*)</title>", $line, $out)) {
$title=$out[1];
break;
}
}
?>