PHP exec(), fire and forget, load page content, but ajax request don't start until that process end
user786 Published in March 24, 2018, 5:44 pm
This question already has an answer here:
Asynchronous shell exec in PHP
on my site i try to fire and forget with php:
this line starts a process about 20 seconds:
exec('wget -qO- url-to-process' > /dev/null &');
All script is loaded , without attending this line.
Now my page is fully loaded.
But I have a
DataTable, populated with
an ajax request. The question is
why ajax request doesn't start until that 20 seconds?
What could be the problem?