downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

gupnp_context_new> <gupnp_context_get_subscription_timeout
[edit] Last updated: Fri, 17 May 2013

view this page in

gupnp_context_host_path

(PECL gupnp >= 0.1.0)

gupnp_context_host_pathInicio de Alojamiento

Descripción

bool gupnp_context_host_path ( resource $context , string $local_path , string $server_path )

Inicia el alojamiento de local_path a server_path. Archivos con la ruta local_path.LOCALE (en caso de existir) serán servidos cuando LOCALE sea indicado en la cabecera Accept-Language.

Parámetros

context

Un identificador de contexto, devuelto por gupnp_context_new().

local_path

Ruta al archivo o o directorio local a ser alojado.

server_path

Ruta del servidor Web donde local_path será alojado.

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Ejemplos

Ejemplo #1 Crea un nuevo contexto UPnP y establece la ruta de alojamiento

<?php

/* Crea un nuevo contexto UPnP */
$context gupnp_context_new();

if (!
$context) {
 die(
"Error creando el contexto GUPnP\n");
}

/* Alojar directorio actual */
gupnp_context_host_path($context"./web""");

?>

Ver también



add a note add a note User Contributed Notes gupnp_context_host_path - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites