php & includes

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
ulisse
Forum Members
Forum Members
Posts: 18
Joined: Sun Jan 15, 2006 10:25 am

php & includes

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: php & includes

Post by calguy1000 »

This question has been answered at least a hundred times on the forum already.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
ulisse
Forum Members
Forum Members
Posts: 18
Joined: Sun Jan 15, 2006 10:25 am

Re: php & includes

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: php & includes

Post by calguy1000 »

Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
ulisse
Forum Members
Forum Members
Posts: 18
Joined: Sun Jan 15, 2006 10:25 am

Re: php & includes

Post by ulisse »

Done but the problem persist.

Image

thanks
Last edited by ulisse on Thu Jul 19, 2007 10:49 am, edited 1 time in total.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: php & includes

Post 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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
savagekabbage
Forum Members
Forum Members
Posts: 75
Joined: Mon Apr 23, 2007 3:51 pm
Location: Northern Virginia, United States

Re: php & includes

Post 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
Post Reply

Return to “Modules/Add-Ons”