executing php used in file_get_contents
Posted: Wed Oct 19, 2005 5:39 am
hi, as an example i have these 2 pages
test1.php
and
test.php
the problem is probably obvious but just incase, how do you get it so that in the test.php itll display it as if it was test1.php.
thanks for any help.
test1.php
Code: Select all
<?php
$title = 'THIS BETTER WORK!';
?>
<html>
<head>
<title><?php echo $title; ?></title>
</head>
<body>
</body>
</html>test.php
Code: Select all
<?php
echo (file_get_contents('test1.php');
?>thanks for any help.