Page 1 of 1
php & includes
Posted: Wed Jul 18, 2007 2:09 pm
by ulisse
I tried including PHP with CMSMS, and it didn't work. Might I suggest to add a tag/module in CMSMS to include PHP please? It's disturbing to not be able to include your own code in PHP. I have try also this:
Code: Select all
include('applications/test/test.php');
the only thing that I see is the text: include('applications/test/test.php');
thanks
Re: php & includes
Posted: Wed Jul 18, 2007 2:12 pm
by calguy1000
This question has been answered at least a hundred times on the forum already.
Re: php & includes
Posted: Wed Jul 18, 2007 3:34 pm
by ulisse
I have read all the articles about this topic and there is not a reply for this question for the newer version of CMSMS.
thanks
Re: php & includes
Posted: Wed Jul 18, 2007 5:31 pm
by calguy1000
Re: php & includes
Posted: Wed Jul 18, 2007 7:48 pm
by ulisse
Done but the problem persist.
thanks
Re: php & includes
Posted: Mon Jul 23, 2007 3:39 pm
by JohnnyB
Wouldn't the php include need to go inside of a template file or inside of a user defined tag...? I don't know that using {php} include {/php} will work inside of an content item.
Re: php & includes
Posted: Mon Jul 23, 2007 5:25 pm
by savagekabbage
The link that calguy posted above tells you everything you need to know.
Posted from the other thread:
tsw wrote:
copy paste your php into user defined tag (remove ) then call that tag from your page or template.
or change config.php to allow smarty php tag (this isnt really supported but should work) and use {php} include('foo') {/php}
hope this helps