continue processing php after sending http response

Yes. You can do this: ignore_user_abort(true);//not required set_time_limit(0); ob_start(); // do initial processing here echo $response; // send the response header(‘Connection: close’); header(‘Content-Length: ‘.ob_get_length()); ob_end_flush(); @ob_flush(); flush(); fastcgi_finish_request();//required for PHP-FPM (PHP > 5.3.3) // now the request is sent to the browser, but the script is still running // so, you can continue… die(); //a … Read more

Guzzlehttp – How get the body of a response from Guzzle 6?

Guzzle implements PSR-7. That means that it will by default store the body of a message in a Stream that uses PHP temp streams. To retrieve all the data, you can use casting operator: $contents = (string) $response->getBody(); You can also do it with $contents = $response->getBody()->getContents(); The difference between the two approaches is that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)