Unix and Linux Discussions Tagged with hosting |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
14,751 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
903 |
Shell Programming and Scripting |
|
|
|
0 |
912 |
Software Releases - RSS News |
|
|
|
0 |
882 |
Software Releases - RSS News |
|
|
|
0 |
1,050 |
Software Releases - RSS News |
|
|
|
0 |
807 |
Software Releases - RSS News |
|
|
|
0 |
906 |
Software Releases - RSS News |
|
|
|
0 |
860 |
Software Releases - RSS News |
|
|
|
0 |
1,005 |
Software Releases - RSS News |
|
|
|
5 |
3,436 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,851 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
3,366 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,018 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,682 |
IP Networking |
|
|
|
3 |
2,869 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,850 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,255 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,284 |
UNIX for Dummies Questions & Answers |
GUPNP_CONTEXT_HOST_PATH(3) 1 GUPNP_CONTEXT_HOST_PATH(3)
gupnp_context_host_path - Start hosting
SYNOPSIS
bool gupnp_context_host_path (resource $context, string $local_path, string $server_path)
DESCRIPTION
Start hosting $local_path at $server_path. Files with the path $local_path.LOCALE (if they exist) will be served up when LOCALE is speci-
fied in the request's Accept-Language header.
PARAMETERS
o $context
- A context identifier, returned by gupnp_context_new(3).
o $local_path
- Path to the local file or folder to be hosted.
o $server_path
- Web server path where $local_path should be hosted.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Create new UPnP context and set host path
<?php
/* Create the UPnP context */
$context = gupnp_context_new();
if (!$context) {
die("Error creating the GUPnP context
");
}
/* Host current directory */
gupnp_context_host_path($context, "./web", "");
?>
SEE ALSO
gupnp_context_new(3), gupnp_context_unhost_path(3).
PHP Documentation Group GUPNP_CONTEXT_HOST_PATH(3)