In order to create a backgrouns process, I’ve created this inside an snippet :
exec(“php -d memory_limit=2048M -d max_execution_time=9000 photo-to-text.com/public_html/wp-content/testing.php>exit.txt”);
where the script testing.php has just a sleep(30);
The problem is that snippet WAITS until the process testing finishes, and what I want is to run it in background.
Any solution?
I believe you can add & to the end of shell commands to have them run in the background.
exec("php -d memory_limit=2048M -d max_execution_time=9000 photo-to-text.com/public_html/wp-content/testing.php>exit.txt &");