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                  |        [EMAIL PROTECTED]
Programador, Administrador, DBA |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to