Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gupnp_context_host_path(3) [php man page]

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)

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 device

SYNOPSIS
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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Web page hosting

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)
Discussion started by: PCL
1 Replies

2. UNIX for Dummies Questions & Answers

Unix Basics

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)
Discussion started by: cap97
2 Replies

3. UNIX for Dummies Questions & Answers

Consused what mail server (there's too many)

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)
Discussion started by: d11wtq
1 Replies

4. Cybersecurity

Web hosting security

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)
Discussion started by: Sergiu-IT
4 Replies

5. UNIX for Dummies Questions & Answers

Web server - O/S

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)
Discussion started by: c00kie88
1 Replies

6. IP Networking

Alternative to Port 25

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)
Discussion started by: sdotsen
1 Replies

7. Web Development

weird 500 Internal server error

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)
Discussion started by: saariko
2 Replies

8. UNIX for Advanced & Expert Users

Shared hosting, how to install programs and libraries in your home folder

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)
Discussion started by: PiniFarini
4 Replies

9. Web Development

Web Site Performance Issue

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

Project hosting?

Hey admins!, Please can you consider hosting devel projects. A. (5 Replies)
Discussion started by: ASGR
5 Replies

11. UNIX for Advanced & Expert Users

Strange Issue with document upload through Web server

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)
Discussion started by: Hari_Ganesh
2 Replies

12. Solaris

IPlanet Website Root directory?

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)
Discussion started by: Nvizn
8 Replies

13. UNIX for Dummies Questions & Answers

MilesWeb.com shared hosting or unlimited hosting plans?

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)
Discussion started by: Guruguy
1 Replies

14. What is on Your Mind?

Best Linux/UNIX-based website hosting service?

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)
Discussion started by: markolinux
2 Replies

15. Web Development

Changing Images in HTML

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)
Discussion started by: minnawanda
4 Replies