Here is my situation.
Client fills out form and sends it to perl script (S1) on my server.
S1 sends info off to "foreign" server (a credit card processor).
The foreign server is configured to send approvals to one script (call it S2) with approval and another script (S3) with a disapproval.
Now how do I get from S2 or S3 back to the user?
I suppose I could have S1 (which has the connection to the user) wait until it sees something from S2 or S3, but I hate that kind of token system, it is difficult and prone to error. (I do some MySQL in this system, so I could use that I suppose.) I understand that PHP can handle this by somehow keeping the connection, but I don't want to re-write stuff.
Client fills out form and sends it to perl script (S1) on my server.
S1 sends info off to "foreign" server (a credit card processor).
The foreign server is configured to send approvals to one script (call it S2) with approval and another script (S3) with a disapproval.
Now how do I get from S2 or S3 back to the user?
I suppose I could have S1 (which has the connection to the user) wait until it sees something from S2 or S3, but I hate that kind of token system, it is difficult and prone to error. (I do some MySQL in this system, so I could use that I suppose.) I understand that PHP can handle this by somehow keeping the connection, but I don't want to re-write stuff.