I have a php file and it takes 11 minutes to upload and process excel.
I want to do this in the background with shell_exec, but I get an error like this.
File "/tmp/phpG4jVlp" does not exist.
The command I am using is as follows.
/www/server/php/74/bin/php -f /background_processes/inventory_excel_upload.php 'eyJmaWxlIjp7Im5hbWUiOiJJbnZlbnRvcnkgMTkuMDcuMjAyMiAxMF8yM181OC54bHN4IiwidHlwZSI6ImFwcGxpY2F0aW9uXC92bmQub3BlbnhtbGZvcm1hdHMtb2ZmaWNlZG9jdW1lbnQuc3ByZWFkc2hlZXRtbC5zaGVldCIsInRtcF9uYW1lIjoiXC90bXBcL3BocEc0alZscCIsImVycm9yIjowLCJzaXplIjo0MjI4MDJ9fQ=='
output of the parameter:
{
"file":{
"name":"Inventory 19.07.2022 10_23_58.xlsx",
"type":"application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"tmp_name":"\/tmp\/phpG4jVlp ",
"error":0,"size":422802
}
}
I have given the file path as a parameter. Is there any other way?