You will need to write some handler on your web server that expects the same parameters as the PHP script expects. What language you use for this does not matter. You need to do some reverse engineering and maybe change the URL in Javascript to point to your new handler.
source
share