Re: Using PHP globally
| From: | Matt McClanahan | Date: | Tue, 01 Aug 2000 07:43:14 +0000 |
| Subject: | Re: Using PHP globally | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9375@lists.php.net to get a copy of this message | ||
On Tue, 1 Aug 2000, Richard Kurth wrote:
> Is there a way to use php scrips globally. What I mean is I have a web
> hosting company and I would like to allow my customers to use some of
> my scripts like a File manager, counter, formmail, etc. all written
> in php. I don't want to have to set it up on each site. I would like
> to set them up in a directory that is global to the whole server. Thsi
> would be like setting up an allies in Apache for cgi programs and then
> all they have to do is call the script.
>
> Is this possible and what would I have to do to accomplish this
Sure, just put your code in an include_path that your users have access
to. As long as they have permissions to get to the stuff, they'll be able
to use it. (Which, in some cases, can be a security vulnerability)
Matt