I created a new php file on my server where moodle is installed. The installed location is under the local folder. I am trying to connect to my database but it doesn't work. I am already failing at the first line of code which should be
from here https://docs.moodle.org/dev/Data_manipulation_API#Getting_an_hashed_array_of_records. Just for testing purpose I copied the config.php file into the same local folder and wrote into the php file the following line:
require __DIR__ . 'config.php';
When I am calling my site I just get a blank site even when I do an echo after the require line, so no output here. Can somebody help me to find the right direction for this?