<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.. I am trying to get the names of all the xen domains using libvirt-php. I saw this php script: <pre style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(153, 153, 153); border-right-color: rgb(153, 153, 153); border-bottom-color: rgb(153, 153, 153); border-left-color: rgb(153, 153, 153); border-image: initial; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; "><?php
     $conn = libvirt_connect('null', false);
     $doms = libvirt_list_domains($conn);
     print_r($doms); <span style="font-family: Tahoma; font-size: 10pt; ">?></span></pre><div> It gives me error. Could you please tell me how to connect to xen hypervisor? I have also tried: <span style="background-color: rgb(255, 255, 255); font-size: 10pt; ">$conn = libvirt_connect('xen:///', false); but it wont work..</span></div>                                          </div></body>
</html>