bash - Execute script with COM in the background using phpGet the solution ↓↓↓
Hello I want to run script using COM in the background.
Here is my code:
$WshShell = new COM("WScript.Shell"); $obj = $WshShell->Run("cscript C:/Users/Administrator/Desktop/PhotoshopImg/script.vbs", 0, true);
I want to run the script in the background. Its possible?
Thanks you :)
Given how PHP scripts are often run using Apache/Ngnix server, and are used to server content, my answer is: no. It's not possible.
However, you might use queuing solutions like redis or rabbitMq to schedule/run some jobs, which might be thought of "in the background", even though they are just separate PHP processes.
Share solution ↓
Link To Answer People are also looking for solutions of the problem: cannot set properties of undefined (setting '_dt_cellindex')
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.