My goal is to launch some time consuming functions in the background to avoid user to wait before the server response is rendered.
I have a Symfony project where I am la
I found a workaround to this problem using exec instaed of creating a new Process object.
exec('/usr/bin/php '.$this->get('kernel')->getRootDir().'/console scopusftpupload ' . escapeshellcmd($params) . ' > /dev/null 2>&1 &');