techscorpio
08-30-2006, 08:11 AM
Hi ALL,
I am trying to develope a PHP script which will automatic startup for virtual machines
under Microsoft Virtual Server 2005 r2 but it failed due to COM object saying Source
unknown But the same thing when i tried through VB script it works fine.
VB script:
Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("VM Name")
objVS.Startup();
It Worked fine
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ___________ _ _ _ _ _
PHP Script:
$objVS = new COM(" VirtualServer.Application");
$objVM = $objVS->FindVirtualMachine("Scorpio");
$objVM->Startup();
it throuhgs Error at FindVirtualMachine function saying
ERROR: Fatal error: Uncaught exception 'com_exception' with message 'Source: Unknown
Plese Help me it's urgengt !!
Thanks in advance
I am trying to develope a PHP script which will automatic startup for virtual machines
under Microsoft Virtual Server 2005 r2 but it failed due to COM object saying Source
unknown But the same thing when i tried through VB script it works fine.
VB script:
Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("VM Name")
objVS.Startup();
It Worked fine
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ___________ _ _ _ _ _
PHP Script:
$objVS = new COM(" VirtualServer.Application");
$objVM = $objVS->FindVirtualMachine("Scorpio");
$objVM->Startup();
it throuhgs Error at FindVirtualMachine function saying
ERROR: Fatal error: Uncaught exception 'com_exception' with message 'Source: Unknown
Plese Help me it's urgengt !!
Thanks in advance