Re: Re: [PHP3] Not allowing users to run PHP scripts
| From: | Chandrashekhar Bhosle | Date: | Sat, 10 Jun 2000 09:37:29 +0000 |
| Subject: | Re: Re: [PHP3] Not allowing users to run PHP scripts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1529@lists.php.net to get a copy of this message | ||
Or set the
AddType application/x-httpd-php .php
only for each VirtualHost requiring php.
<VirtualHost foo.com>
AddType application/x-httpd-php .php
</VirtualHost>
and don't have a global AddType.
> > > From: Paul Farber [mailto:farber@f-tech.net]
> > > Subject: [PHP3] Not allowing users to run PHP scripts
> > >
> > >
> > > Hello all,
> > >
> > > Is there a simple way to not allow users to run php scripts?
> > > I didn't see
> > > anything specific in the DOCS.
> > >
> > > Basically I have a need for my web site to run sql queries
> > > via PHP 4, but
> > > don't want to give the other sites the ability to run php.
> > >
> > > Any ideas?
>
> Something not unlike this in httpd.conf:
>
> php_flag engine on
> <Virtual whatever>
> php_flag engine off
> </Virtual>
>