display php

display php

Bởi Angel Rojas -
Số lượng các câu trả lời: 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.


Trung bình điểm đánh giá: -
Để phản hồi tới Angel Rojas

Re: display php

Bởi 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>