Re: PHP-memory leak with COM-objects?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is c:\test.doc a file on the local user's machine or the server?

On 10/10/07, Gustav Wiberg <gustav@xxxxxx> wrote:
> Hi again!
>
> I want the logged-in user to able to open a word-file (or an Excel-file or
> whatever) and then Push Save-Icon and make sure that changes are actually
> made.
> Example:
>
> John opens up file c:\test.doc. He writes "Ugly cow" in it and pushes the
> save-icon. Ugly Cow is now stored in file c:\test.doc. Working with
> COM-objects is the only solution I have found!?
>
> Normally If John opens up c:\test.doc Internet Explorer (or whatever
> browser) saves the file temporarily in some temp-folder (don't know exact
> location), lets say c:\temp\sdifiuweoriu2734872.tmp. When John pushes
> Save-icon he saves the new information TO the temporarily stored file IF he
> doesn't use Save AS...
>
> Please come with suggestions :-)
>
> Best regards
> /Gustav Wiberg
>
> ----- Original Message -----
> From: "John Mertic" <jmertic@xxxxxxxxx>
> To: "Gustav Wiberg" <gustav@xxxxxx>
> Cc: "PHP-Windows Group" <php-windows@xxxxxxxxxxxxx>
> Sent: Wednesday, October 10, 2007 1:30 PM
> Subject: Re:  PHP-memory leak with COM-objects?
>
>
> > 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
> >
> >
>
>
>


-- 
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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux