Running PHP inside a moodle resource page

Running PHP inside a moodle resource page

by Andrew Lian -
Number of replies: 2

Hello

Is it possible to run a php script from inside a moodle (2.2.x) page? When I add php, the script is converted into a comment, presumably by CKEditor.

Thank you for any advice

Andrew

Average of ratings: -
In reply to Andrew Lian

Re: Running PHP inside a moodle resource page

by Brian Dunell -

Bump..

I have the same question. PHP code typed into the HTML editor is converted into a comment upon saving.

Is it possible to embed custom PHP code into Moodle pages?

 

Brian

In reply to Brian Dunell

Re: Running PHP inside a moodle resource page

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
No!

It would be a massive security hole. If you want to run PHP you'll need to write a proper plugin.