php var include

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
User avatar
Maurizio1230
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Sep 18, 2007 1:58 pm
Contact:

php var include

Post by Maurizio1230 » Wed Jan 02, 2008 12:01 pm

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 ;)

bemyway
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Jan 06, 2008 11:51 am
Contact:

Re: php var include

Post by bemyway » Sun Jan 06, 2008 6:49 pm

try this:

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


Post Reply