Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-07-16
1
Medium Priority
?
281 Views
Last Modified: 2013-12-13
I am working on PHP + COM  Excel.
When every time I run my code , it will generate new excel.exe process.
my code have
$book->Close(false);
   $excel->Quit();
  $excel = null;
unset($book);
unset($excel);
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?
Thanks
0
Comment
Question by:Tim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 35

Accepted Solution

by:
gr8gonzo earned 2000 total points
ID: 24875328
You can try to use a process killer program (like PSKill from http://technet.microsoft.com/en-us/sysinternals/bb896683.aspx) 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.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question