I've worked a lot with the Word COM and while it works well on a single desktop, I wouldn't recommend it for a server process. It's rather slow and while the memory eventually gets cleaned up, it still takes up a lot of memory for as little as it does. I'm not so sure OpenOffice is much better in this regard. You could push these tasks to another server, but I'd also look at what you are doing and see if you can do it another way. We currently use Word documents as template for a mail merge type operation and are looking to move these to RTF since that enables us to take Word out of the loop when doing the mail merge ( we actually just do a global find and replace in the document since we've found more consistent results with that ). But again, this all depends upon the application. John On 10/10/07, Gustav Wiberg <gustav@xxxxxx> wrote: > Hi! > > I want to use COM+ objects (especially with Word). I have understood (a lot of reading on the Internet) that when initiating COM-objects with Word (even if the object is released in variable in the code). Word leaks a lot of memory. I have also read that if I want to use Word-COM+ object I should have a dedicated server because it takes so much memory. > > I have tested some and I easily get out of memory even if there is 4GB on the server I tested against. > > Then I run PHP as ISAPI, and the suggestion on the php.net site was to run PHP as CGI because COM-objects are run in the same memory-space as ISAPI when running as ISAPI-module. http://php.oregonstate.edu/manual/en/class.com.php > > > > What do you guys thinks about above? Give me some feedback, please :-) > > Best regards > /Gustav Wiberg > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.488 / Virus Database: 269.14.6/1060 - Release Date: 2007-10-09 16:43 > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- John Mertic jmertic@xxxxxxxxx http://jmertic.wordpress.com "Explaining a joke is like dissecting a frog: you understand it better, but the frog dies in the process." --Mark Twain -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php