What are the methods of PHP asynchronous disposition
Source: Internet
Author: User
What are the methods of PHP asynchronous processing?
First of all ask a question, the bank for the payment of successful orders, the general will have to asynchronously notify each other, how they are implemented.
Assume:
After successful payment, the user will be shown the Success page immediately.
But at this point, we need to asynchronously notify the other server that the order was successful.
Without affecting the immediate display of the success of the page, how people will achieve
------Solution--------------------
But at this point, we need to asynchronously notify the other server that the order was successful.
Simply a post is not enough? The server keeps the appropriate delivery interface.
...
------Solution--------------------
PHP's Fsockopen () function is asynchronous. And many banking systems are built by Java, Java multithreading and so on are very powerful, more than PHP.
Of course, first output the user interface, and then notify the recipient of the server is OK AH
------Solution--------------------
Curl sends the request over, and the opposite open Interface is on the line.
------Solution--------------------
PHP does not exist in async mode
In the current Web application, only Ajax is asynchronous
Request sent to the past, regardless of the response
It's a broadcast, not a newsletter.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service