by Tim Hunt.
Note that moodle and moodledata are just conventional names. To find out what they are really called, you need to find the config.php files, which is in the moodle folder. Argh! infinite recursion error!
OK, well you can work out what the Moodle folder is called from the URL used to access the site. If that URL is like http://mydomain.com/ then it is likely that the 'moodle' fodler is htdocs.
If the URL to access Moodle is like http://mydomain.com/some/path/ then the folder will be htdocs/some/path, etc.
Once you have found config.php, then look inside. That will tell you which database your Moodle site is using, and which 'moodledata' folder. That is given by $CFG->moodledata.
I hope that makes sense.