bash - Execute script with COM in the background using php
Get 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 :)
Answer
Solution:
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 ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: trying to access array offset on value of type bool
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.
Similar questions
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.