RE: [PHP-WIN] Exec() In Windows

From: Date: Thu, 05 Apr 2001 12:11:37 +0000
Subject: RE: [PHP-WIN] Exec() In Windows
Groups: php.windows 
Request: Send a blank email to php-windows+get-6530@lists.php.net to get a copy of this message
Hello, I went through the same problems but got some help from a coworker. Oliver was right about the user ID. what you can do is change the .exe to an ActiveX.dll COM object. Then add it to a MTS package component. MTS can be installed off the NT4 Option Pack (downloadable from MS). then just expand the computers folder, expand computer icon, right click and add a package, set the package to run under a given UserID. then expand the package icon, expand components folder, and drag and drop (copy and paste does not work) the .dll to the component folder. MTS will then register the .dll on the server. then createobject the desired Class using php and you're on your way. MTS will run the object under your specified UserID. When building the .dll, make sure you set the MTSTransaction property to NEW TRANSACTION and set the .dll property in MTS to NEW TRANSACTION. This creates a new process for the COM object on the server using your specified UserID. I am using NT4.0 and IIS and VB6.0. I'm pretty sure MTS can run on its own and does not require IIS. Why did I do this? I am pulling appointments out of Outlook calendars which requires vb or c++ to access Outlook. Hope this helps. -----Original Message----- From: zugut [mailto:zugut@hotmail.com] Sent: Wednesday, April 04, 2001 5:28 PM To: php-windows@lists.php.net Subject: Re: [PHP-WIN] Exec() In Windows Hi, I have the same problem, I don't understand the problem. "Keith Stevenson" <keiths@support-works.com> wrote in message news:551A28A372F7D211A40600A0C9CC6D431A69A0@hornbill.com... > Hi, > Im having a Problem running an application from a PHP page using the > Exec() function (as well as all the other program execution fuctions) on a > Windows NT Server running Apache. > > The code I attempt to run is : $ReturnVal = exec("Application.exe"); > > It returns with Unable to Fork.... > > Does any body have any idea on how to fix this or an alternative so I can > just run the damm application.... > > Cheers > > > -- > 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 > -- 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 (#6530) next »