How can I clear excel.exe process When using PHP + COM Excel

I am working on PHP + COM  Excel.
When every time I run my code , it will generate new excel.exe process.
my code have
  $excel = null;
It looks not work.
If I add $excel->Release(); , it will give me error
Uncaught exception 'com_exception' with message 'Error [0x80020003] Member not found .

Any help?
TimSenior PHP DeveloperAsked:
Who is Participating?
gr8gonzoConnect With a Mentor ConsultantCommented:
You can try to use a process killer program (like PSKill from that runs on a scheduled basis using the Windows task scheduler. The problem with that is that you could occasionally kill a process before it has finished creating the Excel. But it should at least work most of the time. I've suggested an alternative for creating Excel files in your other question.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.