Hi
Using the ActiveS COM Wrapper, I have connected successfully to skype in php using following:
[quote]
<?php
class Skype {
var $terminated = false;
var $attached = false;
public $skype;
function connect() {
$skype = new COM("SkypeAPI.Access");
try {
$skype->Connect();
} catch (Exception $com_exception) {
print "Exception calling skype.connect - <$com_exception>n";
}
sleep(5);
print "called connectn";
}
...
}
}
// Create skype object
$skype = new COM("SkypeAPI.Access");
$sink = new Skype();
com_event_sink($skype, $sink, "Skype");
$sink->connect();
[/quote]
-------
Now that I have connected, I'd like to manipulate the other classes. When I try to issue the following (within or outside the class) I get error:
[quote]
$convert = $skype->convert;
[/quote]
Error:
PHP Fatal error: Uncaught exception 'com_exception' with message 'Unable to lookup `convert': Unknown name.
I have tried other ways, but I guess need general direction how to use the COM wrapper?
Thanks in advance.