01-19-2011, 02:22 AM
|
#1 (permalink)
|
|
The Visitor
Join Date: Jan 2011
Posts: 2
Thanks: 0
|
echo and file_get_contents
Two files:
test.php
index.php
Code:
<?php
$text = "something";
$new = file_get_contents('test.php');
echo $new;
?>
When I go to index.php it displays "$text", while I want it to display "something".
I'm trying to make simple template system, but when I try to read my templates with the above method, it displays php variables, not their values..
|
|
|
|