RE: [PHP-WIN] Need advise: COM object in a session variable

From: Date: Wed, 07 Nov 2001 22:35:23 +0000
Subject: RE: [PHP-WIN] Need advise: COM object in a session variable
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10283@lists.php.net to get a copy of this message
From: http://www.php.net/manual/en/faq.com.php <quote begins> . Is it possible to get a running instance of a component ? This is possible with the help of monikers. If you want to get multiple references to the same word instance you can create that instance like shown: $word = new COM("C:\docs\word.doc"); This will create a new instance if there is no running instance available or it will return a handle to the running instance, if available. <end of quote> A+ Alain -----Original Message----- From: Alexander Sokolsky [mailto:sokolsky@who.net] Sent: Friday, November 02, 2001 11:31 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Need advise: COM object in a session variable I am porting a "legacy" application from IIS/ASP to Apache/PHP4. The ASP application instantiates server side COM object implemented by custom out of process server. This COM object is then maintained for the duration of the session. Subsequent HTTP request are processed by the ASP code which calls methods of the same COM object instance. Also appreciated is the fact that IIS takes care of garbage collection - the COM object is gracefully destroyed upon session expiration even if the session was abandoned. I'd like to implement the behavior described above in PHP4/Apache. Ideally both CGI and server API versions of PHP should be supported. I consider implementation of the custom session handler. It could be done in the context of the separate process which will garbage collect expired sessions and more importantly, destroy COM objects. Thoughts? Recommendations? Thanks -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#10283) next »