GUPNP_CONTEXT_HOST_PATH(3) 1 GUPNP_CONTEXT_HOST_PATH(3)gupnp_context_host_path - Start hostingSYNOPSIS
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)
Check Out this Related Man Page
GUPNP_ROOT_DEVICE_NEW(3) 1 GUPNP_ROOT_DEVICE_NEW(3)gupnp_root_device_new - Create a new root deviceSYNOPSIS
resource gupnp_root_device_new (resource $context, string $location, string $description_dir)
DESCRIPTION
Create a new root device, automatically downloading and parsing location.
PARAMETERS
o $context
- A context identifier, returned by gupnp_context_new(3).
o $location
- Location of the description file for this device, relative to the HTTP root
RETURN VALUES
A root device identifier.
EXAMPLES
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
");
}
/* Create root device */
$location = "/BinaryLight1.xml";
$dev = gupnp_root_device_new($context, $location);
?>
SEE ALSO gupnp_root_device_set_available(3), gupnp_root_device_start(3), gupnp_root_device_stop(3).
PHP Documentation Group GUPNP_ROOT_DEVICE_NEW(3)
I built my website based on Dreamweaver, on Windows platform. My server uses Unix, and the page doesn't look too good. Is there any way to solve this problem without too much of a headache? (1 Reply)
Hey, you said this forum was for Dummies, so don't blame me for the following! :D
My whole "web building" life, I've had my sites hosted in one for or another. Lately, I've gotten into PHP and MySQL and, of course, those are also hosted for me. But lately, I've been thinking of using PHP and... (2 Replies)
Hi,
I've just got my first dedicated server but it's one of these DIY things (great for the web hosting side of it for me) where I have to install everything myself (even the image for Gentoo).
I need to install a mail server (free one) that supports IMAP and POP3 but Googling is proving a... (1 Reply)
Hello, guys !
The company I work for has a few web hosting servers and I'd like to know how can I secure the servers a little bit ?
The situation is like this:
Apache runs as nobody so all users can run scripts as nobody. This is a big security problem beacause if I have an account on the... (4 Replies)
Hi all,
I would like some suggestion or opinion from Unix/Linux Expert regarding web server.
I have to buy a new hardware for hosting a website which needs mysql, PHP.
Do you think i should buy Solaris (Unix) just the middle range server or should i just buy HP / DELL server and ask for... (1 Reply)
We're in the process of testing a mail server that we hope will replace our current one that's being hosted by our ISP. We learned a few things along the way and would like to avoid them if possible. The biggest hurdle is getting around port 25 (SMTP). Our work force is approx 75% consultants who... (1 Reply)
Hi All,
I am seeking some help. While trying to access my website: EDITED (hosted on private server somewhere - don't want to publicize names) - I have a weird behaviour:
I can always get to the site - but some applications get a 500 Internal error.
If I use FireBug (mozilla addon) I can... (2 Replies)
Hi all
I hope I am posting in the right section. If not please excuse me and redirect me to the right section.
Here is my problem:
I am using a shared hosting plan at Godady. I have shell access and of course my own folder.
I would like to be able to install programs in my own folder... (4 Replies)
Hi All,
I am currently managing a web site. I find that during the peak time period,ie,between 1300hrs to 2100hrs everyday,the response slows down whenever i access the applications hosted by the server.However when i try to access the static content in the web server,it loads quickly.
The... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies
10. Post Here to Contact Site Administrators and Moderators
Hi ,
I am hosting a website where in users log into their account and upload documents. The website is hosted on a Apache web server(4 nodes) sitting on RHEL VM's and load balanced by radware.
The issue i am facing is that the documents that are uploaded through the web site sometimes show... (2 Replies)
I have a Solaris 10 server running iPlanet and hosting a website. My issue is like Windows Server, attempting to locate the (/inetpub/wwwroot/) root directory for the website hosted. I've located iPlanet's location, but unsuccessful at finding where this website lives. I assume, like Windows,... (8 Replies)
I want to host a website in India, after all my research I have found MilesWeb.com, I am planning to go for their shared plan http://www.milesweb.com/cpanel-hosting.php I have test their contact options and response time, they are really available 24/7. I have checked few other providers, they... (1 Reply)
I'm currently on a shared server, with a fairly-well-known hosting provider, which has gotten progressively worse over the years, and it's time to switch to someone else.
I know there are LOTS of providers out there whose infrastructure is Linux/UNIX based (actually, I'm not aware of any that... (2 Replies)
Hi,
I recently bought shared hosting at asphostportal.com. Now, I have little problem. Could you help me please? How to change the images after every 5 seconds in html?
The images should display in the same places for every 5 seconds?
can anybody send me code please.
Thanks. (4 Replies)