Re[2]: [PHP] Using PHP globally

From: Date: Wed, 02 Aug 2000 03:02:59 +0000
Subject: Re[2]: [PHP] Using PHP globally
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9622@lists.php.net to get a copy of this message
Hello Ben, Tuesday, August 01, 2000, 1:38:45 AM, you wrote: BS> Richard- BS> I would just create an alias in Apache to your system PHP files. BS> E.g. BS> Alias /php-sys/ "/usr/web/php-sys/" BS> This should give your customers access to these files via the /php-sys/ BS> directory. You probably want to make sure you're not going to open any BS> security holes (e.g. make sure you scripts are secure), but other than BS> that, it shouldn't be a big deal. I created a formmail system on my host BS> for all my customers in PHP and dumped it into my php-sys directory. Works BS> like a charm. BS> Hope this helps, BS> - Ben Schumacher BS> At 12:04 AM 8/1/00 -0700, 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 When you say "make sure you scripts are secure" what do you mean and how would you do that. So you just set this up like you would for global CGI programs. I am trying to set up a file manager for my customers. Would I set it up so that the user that wanted tom use the on-line file manager would sent it the variables that the script needs so that they only see the files in there directory. How would I keep them from looking at other directors This one has got me stumped and I am sure it is something simple that I am overlooking. Thanks Richard Kurth

« previous php.general (#9622) next »