interesting. Weka is software developed in New Zealand (at Uni of Waikato) for the purpose of data mining. So, output would be data of sorts....am thinking it just collates the data/organises it and or does some form of simple number work-perhaps, I have not come across it before.
A few things then, you know a bit for food for thought as I am quite sure this sounds novel/new/original software in many respects (hence my interest ):
-does it actually state on the Weka website that the software is comaptible with Moodle? (I couldn't see that info)
-it seems you are seeking two things from the whole set-up Mike
1. to create an analysis framework (which will then be applied in Weka GUI) to deal with the mined-data that you think Weka can do with the data set in a moodle database
2. You want to create a Moodle module from 1. I presume, to for L&T woth students?
-I would have thought Java to be compatible with PHP.....as you have found by connecting the Weka 3.6 to the Moodle database.......sounds like an achievement to me so far
As for displaying Java script as PHP script or the other way around.........I do not have a clue! In my little world it would be great to input that into google translate and voila! Java translated neatly in a box in to Php.....but those languages are not there I have checked LOL!