Please try out the code and let me know if it works. I have tested it out on my side.
OK I have got the haloscan import working fine. Currently its a mix of a perl script and a few sql statments. I will try to package it in a PHP page and then post a link here.