If you can write in php/C i think you should be able to make sense of it...