Solved

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

Posted on 2009-07-16
1
270 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

749 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