Path of moodledata in Moodle is
/nas/wp/www/cluster-40926/securityorg/test_moodle.
Here is the code
$dir = dirname(__FILE__);
echo "Full path to this dir: " . $dir;
Output:
Full path to this dir: /nas/wp/www/cluster-40926/securityorg/test_moodle
But this creates an error "Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting"
cluster-40926 folder donot exits so
I thnk if I can remove cluster-40926 from the path, problem will be solved.
Please help, Thanks in advance