PHP to Applescript Agent

Hello,

I have previously conducted all my web programming in the language of Tango. Tango can directly pass its own variables as Apple Event codes which I fed to a small never quitting applescript program that consisted of every script I needed for interacting with any scriptable software from a browser page. This works fantastically, but I hope to achieve the same results with PHP. The primary reason being I want to move my programming efforts over to PHP as I can’t convince all my clients to invest in the Tango server software in order to utilize my solutions.

Has anyone managed to pass variables from PHP to Applescript so they can control Quark or other software?

BTW: If you want an easy to use web programming solution that works incredibly well with Applescript, Tango is fantastic and I am going to miss it.

Thanks!