well, i don't know the plugin, i'm coding blindly somehow. so if you want further help, give me the source code of the dll, or at least some kind of reference as where to look for further information. the php script does work, it's indeed the dll that has a problem.