<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi All,<br><br>Im trying to figure how to use  libvirt_domain_is_active but I'm unable to find what I am doing wrong.<br>I tested it with  php-libvirt-0.4.4 an with 0.4.3 but i have the same problem <br><br>Im using libvirt-0.9.6-2.fc16.x86_64 with the following code<br><br>Can someone point me in the right direction with the use of  libvirt_domain_is_active ?<br>Thanks<br><br>------8<------CODE --------8<------------------------------------<br><br> print_r ( libvirt_version() );<br><br>$domains=libvirt_list_domains($conn);<br>print_r ($domains);<br><br>foreach ( $domains as $domain ) {<br>    print "$domain\n";<br>    print libvirt_domain_is_active($domain);<br>}<br><br>---------8<------- OUTPUT ----------------8<-------------------<br>Array<br>(<br>    [libvirt.release] => 6<br>    [libvirt.minor] => 9<br>    [libvirt.major] => 0<br>    [connector.version] => 0.4.3<br>    [connector.major] => 0<br>    [connector.minor] => 4<br>    [connector.release] => 3<br>)<br><br><br>Array<br>(<br>    [0] => Domain-0<br>    [1] => vm1<br>    [2] => vm2<br>    [3] => vm3<br>)<br>Domain-0<br>PHP Warning:  libvirt_domain_is_active() expects parameter 1 to be resource, integer given in /var/www/html/libvirt/index.php on line 20<br>PHP Warning:  libvirt_domain_is_active(): Invalid arguments in /var/www/html/libvirt/index.php on line 20<br>vm1<br>PHP Warning:  libvirt_domain_is_active() expects parameter 1 to be resource, integer given in /var/www/html/libvirt/index.php on line 20<br>PHP Warning:  libvirt_domain_is_active(): Invalid arguments in /var/www/html/libvirt/index.php on line 20<br>vm2<br>PHP Warning:  libvirt_domain_is_active() expects parameter 1 to be resource, integer given in /var/www/html/libvirt/index.php on line 20<br>PHP Warning:  libvirt_domain_is_active(): Invalid arguments in /var/www/html/libvirt/index.php on line 20<br>vm3<br>PHP Warning:  libvirt_domain_is_active() expects parameter 1 to be resource, integer given in /var/www/html/libvirt/index.php on line 20<br>PHP Warning:  libvirt_domain_is_active(): Invalid arguments in /var/www/html/libvirt/index.php on line 20<br><br>                                       </div></body>
</html>