Here is my situation.


Client fills out form and sends it to script 1 on my server.

Script 1 sends info off to "foreign" server (a credit card processor).

The foreign server is configured to send approvals to one script (call
it script 2) with approval and another script (Script 3) with a
disapproval.

Now how do I get from script 2 or script 3 back to the user?

I suppose I could have script 1 wait until it sees something from
script 2 or 3, but I hate that kind of token system, it is difficult
and prone to error. I understand that PHP can handle this by somehow
keeping the connection, but I don't want to re-write stuff.