display php

display php

by Angel Rojas -
Number of replies: 1
hello, first of all i apologize for my english, I´m from Guatemala so i have a very bad sintaxis.

well I was triying to display some data with php in a label or a web page in moodle but instead of interpretate the php, moodle displays the php code that i write.

somebody knows how to make that html editor or moodle displays the php interpretated.


Average of ratings: -
In reply to Angel Rojas

Re: display php

by Jan Dierckx -

Having Moodle interpret and execute PHP code inserted through the HTML editor would be very unsafe.

Try adding an iframe inside the label or resource which points to the complete PHP script. Something like <iframe src="myscript.php></iframe>