Page 1 of 1

php var include

Posted: Wed Jan 02, 2008 12:01 pm
by Maurizio1230
Hi,

I'd like to insert in a var an include. Is it possible?

$chat {include "../../folder/file.php";}


Is it right?

Thanks and bye ;)

Re: php var include

Posted: Sun Jan 06, 2008 6:49 pm
by bemyway
try this:

$chat = require("../../folder/file.php");