you could use a global variable.
in your include file, specify the variable like this:
global $title;
$title = "this is the title";
then when you include that file, you should be able to access $title in the file which included it.
Global variables arent really the best solution to the problem though.
you could implement a method (function) which retrieves the title and returns it like this
function getTitle() {
$title = getTitleFromDatabase;
return $title;
}
then in the file you could call getTitle like this:
echo getTitle();