How to perform an asynchronous request on the server?

There is a callback in php. Need this callback server to send the request to another server. The server does not respond immediately, but the callback should terminate nadidas answer.
July 9th 19 at 13:33
2 answers
July 9th 19 at 13:35
Well, except that perversion by starting a php script using shell_exec without symbol &" at the end, which means expect the end of the run shell_exec.

Or if you have super a lot of things, then throw queries to the database and then let a thread of the script for the crown all this processes.
Here's the problem: crown hosting provider never gave me - Kelsi43 commented on July 9th 19 at 13:38
So I did bikes - Kelsi43 commented on July 9th 19 at 13:41
: then do crowns, where it is, and call the script on your hosting)) Or regularly on the reference grahite)) - eveline_Langworth54 commented on July 9th 19 at 13:44
: all found cron. - Kelsi43 commented on July 9th 19 at 13:47
: note that php is chopped if it works for more than 30 seconds. Learn the limitation of the host. - eveline_Langworth54 commented on July 9th 19 at 13:50
Or agents do as in Bitrix. People on the website goes, it sends requests to the server where it checks the timestamp, if greater 5 min running that either. - eveline_Langworth54 commented on July 9th 19 at 13:53
July 9th 19 at 13:37
You can read here:
https://habrahabr.ru/company/devconf/blog/258979/
But probably easier to do via ajax not on server. Received the request to the php will render the page with the download, it launched ajax into a third-party server has received the data sent with ajax to the php, given the page with the download.

PS: c php7 have not yet understood, but met with info that there will be asynchronous.
no Cho won't be there, maybe php9) There is still to plow and plow our gods. - Kelsi43 commented on July 9th 19 at 13:40
: Here drool: https://webware.biz/?p=2073 - Kelsi43 commented on July 9th 19 at 13:43
this https://habrahabr.ru/post/300952/ - eveline_Langworth54 commented on July 9th 19 at 13:46
: Yes, there is a current year 2014, so maybe planned) - Kelsi43 commented on July 9th 19 at 13:49
: That's just testing php7 compared to php5.6 on cheap hosting nic.ru and installed yii. Test - loudly. So, feel. - eveline_Langworth54 commented on July 9th 19 at 13:52

Find more questions by tags PHP