View Single Post
Old 01-19-2011, 02:22 AM   #1 (permalink)
kuujo
The Visitor
 
Join Date: Jan 2011
Posts: 2
Thanks: 0
kuujo is on a distinguished road
Default echo and file_get_contents

Two files:

test.php

Code:
$text

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..
kuujo is offline  
Reply With Quote