display php

display php

per Angel Rojas -
Nombre de respostes: 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.


Mitjana de qualificacions: -
En resposta a Angel Rojas

Re: display php

per 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>