PHP Doku:: Create a new root device - function.gupnp-root-device-new.html

Verlauf / Chronik / History: (50) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteGupnpGupnp Funktionengupnp_root_device_new

Ein Service von Reinhard Neidl - Webprogrammierung.

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
Gupnp Funktionen

<<gupnp_root_device_get_relative_location

gupnp_root_device_set_available>>

gupnp_root_device_new

(PECL gupnp >= 0.1.0)

gupnp_root_device_newCreate a new root device

Beschreibung

resource gupnp_root_device_new ( resource $context , string $location )

Create a new root device, automatically downloading and parsing location.

Parameter-Liste

context

A context identifier, returned by gupnp_context_new().

location

Location of the description file for this device, relative to the HTTP root

Rückgabewerte

A root device identifier.

Beispiele

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);

?>

Siehe auch


Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)