Insert php code into moodle 2.6

Category: Moodle

khongten
Asked:
2013-12-21 12:59 pm EST

Hits: 1,331
Dear all,
I want to insert php code into moodle 2.6, specially in question bank. Can someone help me to how I have to do?
Thanks in advance.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

BradM
Staff
5,399 Points
2013-12-23 10:33 am EST
Hi khongten - I did some research to find out if you can use php within Moodle and I found the following page:

Loading custom HTML forms and PHP scripts into Moodle

In that forum thread, Timothy Takemoto says:
I think that you would need to hack moodle to add php. If you can write php then it should not be so difficult for you to add some php into the relevant part of moodle.

It does not appear that Moodle supports adding php code to your questions / etc. However, they do suggest using iframes to show pages with php code in them. This thread as well suggests using iframes, so that may be the most common solution when it comes to adding custom php code to Moodle.

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login


Social Media Login

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!