I get this error
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
in my PHP functions if I do not do an echo
followed by a flush()
. In these functions where I have to do the echo
and flush()
, I am using shell_exec()
to run phantomjs
and processing the result returned by it using simple_html_dom
. I am also using a PHP framework called Laravel.
What cause this error, and why does echo
ing and doing a flush()
fix this error?