Using PHP in forums

Using PHP in forums

by Dallas Ray Smetter -
Number of replies: 1
I need to write some PHP that will pull testing stats out of an external database. That's no problem... But I notice that my PHP is getting converted when I try to post it in the forums. Can I write PHP scripts into the forums somehow or do I need to redirect it to a non-Moodle page?
Average of ratings: -
In reply to Dallas Ray Smetter

Re: Using PHP in forums

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
You can't type PHP in user-space.  Imagine the security risk!  Just make your own Moodle script and link to it.
Average of ratings: Useful (1)