sharath Posted September 15, 2006 Share Posted September 15, 2006 Hai,I'm trying to add a new user. But i'm getting fatal error. This is my program....PHP Code:<?phpAdduser() ;function Adduser(){print("creating user \n");$obj = new COM("WinNT://.");try {$user = $obj->create("user", "test");$user->Description = "New User" ;$user->setinfo();} catch( exception $e ) {print("error ........ \n");$user = new COM ( "WinNT://./test");} Below are the error message that I got from this program .error...exception 'com_exception' with message 'Source: UnknownFatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `WinNT://./test': The group name could not be found.Stack trace:#0 C:\Program Files\php\adduser.php(14): com->com('WinNT://./test')#1 C:\Program Files\php\adduser.php(2): Adduser()#2 {main}thrown in C:\Program Files\php\adduser.php on line 14Can you solve my probelm........? Thanks in advance..Regards,sharath. Quote Link to comment Share on other sites More sharing options...
sharath Posted September 15, 2006 Author Share Posted September 15, 2006 can u tell me is there any syntax error in above pgm.... ? Thanks... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.