File PHP in moodledata, is it correct?

File PHP in moodledata, is it correct?

by Gerard A. -
Number of replies: 3

Hello,
Firstly, I'm new in moodle 2.6 and I'm trying more option but so far it's not working. Let me explain myself:
I'm trying to make a file ".php" to work into moodle. This file php is for getting information from database.
Where should I put the file? I put it in moodledata, is it correct? 

Average of ratings: -
In reply to Gerard A.

Re: File PHP in moodledata, is it correct?

by Guillermo Madero -

Hi Gerard,

You may want to start with the Developer documentation.

In reply to Guillermo Madero

Re: File PHP in moodledata, is it correct?

by Gerard A. -

Yes, I saw this documentation but I didn't understand. Can you help me? Thanks

In reply to Gerard A.

Re: File PHP in moodledata, is it correct?

by Guillermo Madero -

Hi Gerard,

Once you install Moodle, basically you have:

1. The Moodle Installation Directory, by default named "moodle" and usually created under the Document Root Directory (e.g. /some/path/public_html/moodle). In this directory resides all the Moodle code (php scripts, plugins, themes, etc.), and here is where you would put your own PHP scripts.

2. The Moodle Data Directory, by default named "moodledata". This directory has to be created outside of the Document Root Directory (e.g. /some/path/moodledata); this is so it isn't accessible via Internet because here are kept all the course content (PDF, videos, SCORM files, etc.) and student files (profile pictures, assignments uploaded, private files, etc.).

3. The Moodle Database, which can be MySQL, MSSQL, etc.

 

If you want to develop code to integrate it into Moodle:

1. You definitely need to get familiar with the Moodle structure and code (see: main pagedeveloper documentation).

2. It would also be best for you to post at the General developer forum.

3. You could try and get a friend to help you with the project you have.

Cheers!