I want to try a PHP script which use COM Object. But I don't know how to use the data returned from COM.
There is an ASP example on how to use the data. ======================= <% Set AU = Server.CreateObject("Persits.AspUser") For Each User in AU.LocalUsers Response.Write User.Name & " (" & User.FullName & ")<BR>" Next %> It will print all users, such as: Administrator, Guest...... (10 users now) ======================= But how to use it in PHP? ======================= <? $AU = new COM("Persits.AspUser"); $user = $AU->LocalUsers; echo $user->Count(); // It will print 10. That's right //I want to access those 10 users. But I can't find a //way. Anybody know how to access it? Thanks. //The $user is an object, not a object array. Any other method I can use to get those data? Actually, I just find the method Count(). Any documents about these? ?> BTW, all class/object function, such as: get_class_methods, get_class_vars, get_object_vars return unuseful results. If I use print_r to print it, it's like: Array {[0]->2}.... That's not what I want. The method Count, I just find it by accident......... Regards, __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- 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]