Can you publish this COM object somewhere? it will be helpful for a lot of
us waiting to have the exec functions fixed for windows.
Message from Alain Samoun
[EMAIL PROTECTED]
-----Original Message-----
From: Dale Heil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 5:12 AM
To: 'zugut'; '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] Exec() In Windows
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:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 5:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Exec() In Windows
Hi,
I have the same problem, I don't understand the problem.
"Keith Stevenson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]