login | register
Wed 03 of Dec, 2008 (22:15 UTC)

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

     
Thread UnlockedNon Sticky Thread

noob trying to embed simple php script within wiki

Poole
Joined: 23 Jun 2008
Reply to this PostReply with Quote to this Post

noob trying to embed simple php script within wiki

Posted: Mon 23 of Jun, 2008 (20:14 UTC),
How do I run a php script within a new wiki page? I need to get data from another mysql db and results to user.
spiderr
Avatar
Joined: 08 Feb 2004
Reply to this PostReply with Quote to this Post

Re: noob trying to embed simple php script within wiki

Posted: Thu 26 of Jun, 2008 (02:17 UTC),
Hi Poole,

This is not possible, and with good reason - this is a security disaster waiting to happen. I would look into overriding a .tpl file and using smarty to

Please enter a valid 'page_name', 'page_id' or 'content_id' to include in this page.

or similar.
Will
Joined: 28 Sep 2005
Reply to this PostReply with Quote to this Post

Re: noob trying to embed simple php script within wiki

Posted: Sun 29 of Jun, 2008 (03:26 UTC),
If you want to load additional data to add to your wiki page, you might want to either edit the php file that loads up a wiki page to lookup whatever additional info you need. If you want to do that without forking from the wiki code base you could do this through a service. See: LibertyServices