Trying to assign an include to a variable. The include is a script,
not html, and so the include will also need to be processed.
I'm on the right track??? but I don't understand this one.. Anyone?????
Code: Select all
<?php
/* EDIT: THIS IS NEWLY RESOLVED SCRIPT */
ob_start();
include 'file.php';
$content = ob_get_clean();
# Echo the Parameters
echo Fill_data($content);
# function looks above/below in same document, and also looks in buffer
function Fill_data($content)
{
return
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'."\n".
' "http://www.w3.org/TR/html4/strict.dtd">'."\n\n".
'<html lang="en">'."\n".
'<head>'."\n".
"</head>\n\n".
"<body>\n".
"<dir>{$content}</div>\n".
"</body>\n".
"</html>";
}
?>