LMSouq
moodle-core Open

PHP Get list of files from Directory (in Moodle)

CL
CLiown
1 month ago
3 views
Problem Description
I want to open a directory and read all the files inside and put them into an `array`, so far I have: $imagesdir = $CFG->dataroot.'/1/themeimages/'; Which gives me the path to the directory, whats the next step?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base