[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Apache and PHP
- From: Martín Marqués <martin bugs unl edu ar>
- To: redhat-list redhat com
- Subject: Re: Apache and PHP
- Date: Sat Aug 31 10:08:01 2002
On Sáb 31 Ago 2002 10:20, David Kramer wrote:
> On Sat, 31 Aug 2002, Martín Marqués wrote:
> > On Vie 30 Ago 2002 19:47, Brian Lucas wrote:
> > > I have added the following to my httpd.conf (2.0.40) file for php over
> > > RH 7.2:
> > >
> > > AddType application/x-httpd-php .php .inc
> > >
> > > and restarted Apache.
> > >
> > > However, files with .inc still show the whole code in the browser and
> > > aren't parsed by php.
> > >
> > > Any thoughts?
> >
> > Why would you want to parse .inc files? rename them to php if they should
> > be parsed.
>
> .inc files are supposed to be included into .php files, not served
> directly. This is dangerous, as more comples PHP applications often have
> private information in them about the system they run on.
>
> But if you are determined to do this, you need an AddHandler line too.
He might be testing some scripts (just a thought).
I have to second you on "not serving .inc files directly"!!!
Saludos... :-)
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques unl edu ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]