I’ve got a PHP page (content.php), containing plain HTML and content delivered by PHP variables
<html>
<head>
</head>
<body>
<h1><?php echo $title; ?></h1>
</body>
</html>
Then there is another PHP page, where I need the contents of content.php in a String, but already processed by the PHP parser. I already tried the file_get_contents() function, but this gives the raw output (PHP not processed). What I’m looking for, is this:
$var contents = somefunction('contents.php') with content:
<html>
<head>
</head>
<body>
<h1>Title</h1>
</body>
</html>
Any help much appreciated!
Try: