note 38063 modified in ref.com by danbrown

From: Date: Mon, 21 Dec 2009 17:12:11 +0000
Subject: note 38063 modified in ref.com by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164216@lists.php.net to get a copy of this message
After many hours of trial and error, I have finally discovered how to kill the notorious Word process. I hope my solution works for everyone else. #1) $word->Quit() is perfectly fine. Don't bother feeding in as parameter those empty variants. #2) Do NOT have com_load_typelib('Word.Application') anywhere in your script. #3) Make sure you have the following line before $word->Quit() : $word->Documents[1]->Close(false); #4) Add the following lines after $word->Quit() : <?php $word->Release(); $word = null; unset($word); ?> If my solution indeed helped you with your problem, please email me and let me know. I would like to see if the problem was indeed solved. --was-- After many hours of trial and error, I have finally discovered how to kill the notorious Word process. I hope my solution works for everyone else. #1) $word->Quit() is perfectly fine. Don't bother feeding in as parameter those empty variants. #2) Do NOT have com_load_typelib('Word.Application') anywhere in your script. #3) Make sure you have the following line before $word->Quit() : $word->Documents[1]->Close(false); #4) Add the following lines after $word->Quit() : $word->Release(); $word = null; unset($word); If my solution indeed helped you with your problem, please email me and let me know. I would like to see if the problem was indeed solved. http://php.net/manual/en/ref.com.php

« previous php.notes (#164216) next »