noob trying to embed simple php script within wiki

Poole
Joined: 23 Jun 2008

noob trying to embed simple php script within wiki

Posted:23 Jun 2008 (16: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.
webmin
Profile Picture
Joined: 08 Feb 2004

Re: noob trying to embed simple php script within wiki

Posted:25 Jun 2008 (22: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

Re: noob trying to embed simple php script within wiki

Posted:28 Jun 2008 (23: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
  Page 1 of 1  1