I need to add a web page to moodle that contains embedded php scripts, whenever i save it, the php portions are not recognised.. any suggestions on how i should proceed?
Hi Brian,
For security reasons it is strictly impossible (forbidden) to include PHP scripts in uploaded web pages. You can, however, use javascript.
Joseph
For security reasons it is strictly impossible (forbidden) to include PHP scripts in uploaded web pages. You can, however, use javascript.
Joseph
If you can upload a php script then this scrip would be executed in the server.... and could be used to give yourself administrator rights, or change your grades.. or whatever.
There is a round trip. copy your page directly into the server, this means that you have access rights to the Moodle data. Or link to a web page not in the moodle area, even in the same server.
Use the search to look in these forums, this issue has been posted before
There is a round trip. copy your page directly into the server, this means that you have access rights to the Moodle data. Or link to a web page not in the moodle area, even in the same server.
Use the search to look in these forums, this issue has been posted before
Hi Brian, if you are going to use PHP inside of Moodle, you should use the Moodle API.
There is a pretty good tutorial to get you started:
http://docs.moodle.org/en/Development:Blocks
There is a pretty good tutorial to get you started:
http://docs.moodle.org/en/Development:Blocks
It is possible with iframe-tags too. In editor press <> and write this:
<iframe
src =http://yourwebpage.xxx
width="100%" height=400>
</iframe>
Save this and your script is there (unless iframe is forbidden at your site like here in moodle.org)