(PECL gupnp >= 0.1.0)
gupnp_root_device_new — Create a new root device
Create a new root device, automatically downloading and parsing location.
A context identifier, returned by gupnp_context_new().
Location of the description file for this device, relative to the HTTP root
A root device identifier.
Beispiel #1 Create new UPnP context and get device info service
<?php
/* Create the UPnP context */
$context = gupnp_context_new();
if (!$context) {
die("Error creating the GUPnP context\n");
}
/* Create root device */
$location = "/BinaryLight1.xml";
$dev = gupnp_root_device_new($context, $location);
?>