View Single Post
  #5 (permalink)  
Old Feb 4th, 2008, 23:24
WebNinja WebNinja is offline
Junior Member
Join Date: Sep 2006
Location: Here
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Syntax to include a file as a variable???

Pretty sure. But I got the include to work like so...
PHP: Select all

$Text = '<?php include("template/template.php"); ?>';
I think what I may need to solve this is to be able to call a variable instead of an include. Something like...
PHP: Select all

$Text ='$inputText'
I'm writing to the file and I need to be able to change the $Text variable. Maybe dynamically?
Reply With Quote