Home PHP exec(), fire and forget, load page content, but ajax request don't start until that process end
Reply: 0

PHP exec(), fire and forget, load page content, but ajax request don't start until that process end

user786
1#
user786 Published in June 20, 2018, 1:25 am

This question already has an answer here:

  • Asynchronous shell exec in PHP 13 answers

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.314114 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO