略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: gupnp_root_device_new

2024-12-20

gupnp_root_device_new

(PECL gupnp >= 0.1.0)

gupnp_root_device_newCreate a new root device

说明

gupnp_root_device_new ( resource $context , string $location , string $description_dir ) : resource

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

参数

context

A context identifier, returned by gupnp_context_new().

location

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

返回值

A root device identifier.

范例

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

?>

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.gupnp-root-device-new.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3