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, 24 May 2013

view this page in

gupnp_context_host_path

(PECL gupnp >= 0.1.0)

gupnp_context_host_pathDémarre l'hébergement

Description

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

Démarre l'hébergement de local_path sur server_path. Les fichiers avec le chemin local_path.LOCALE (si ils existent) seront servis lorsque LOCALE est spécifié dans l'en-tête Accept-Language de la requête.

Liste de paramètres

context

Un identifiant de contexte, retourné par la fonction gupnp_context_new().

local_path

Chemin vers le fichier ou le dossier local à héberger.

server_path

Chemin du serveur Web où local_path doit être hébergé.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

Exemples

Exemple #1 Crée un nouveau contexte UPnP et définit le chemin de l'hôte

<?php

/* Crée le contexte UPnP */
$context gupnp_context_new();

if (!
$context) {
 die(
"Erreur lors de la création du contexte GUPnP\n");
}

/* Héberge le dossier courant */
gupnp_context_host_path($context"./web""");

?>

Voir aussi



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 | stats | sitemap | contact | advertising | mirror sites