[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re[2]: [cobalt-users] (PHP3 index pages)
- Subject: Re: Re[2]: [cobalt-users] (PHP3 index pages)
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Wed Feb 6 09:57:11 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"Pierre Chopot" <pierre@xxxxxxxxxxx> wrote:
> SW> If PHP files with .php and .php4 extensions work for the site, I
suspect you
> SW> haven't asked Apache to reload the modified srm.conf.
>
> SW> /etc/rc.d/init.d/httpd reload
>
> SW> If that's not the problem, let us know. FYI, you should be able to
set any
> SW> file extension to be parsed by PHP. On many sites I manage which
consist
> SW> entirely of PHP pages, I name the files as .html files and set them to
be
> SW> parsed by PHP. This is done so users aren't given an indication that
the
> SW> pages are not static.
>
> SW> -- SW> Steve Werby SW> President, Befriend Internet Services LLC
>
> I guess you achieve this by adding the proper statement in an
> .htaccess file in the top directory of the site ? or in srm.conf if
> you want it system wide ?
Pierre, I do it in the VirtualHost container for the particular site where I
want .hmtl files to be parsed by PHP (httpd.conf). Just add:
AddType application/x-httpd-php .html
If you want to see it in action, visit the site in my sig. In particular
look at the software installation pages - they're all PHP generated, pulling
data from a MySQL db. AddType directives can be set in .htaccess, srm.conf.
and httpd.conf. What you decide depends on whether you want to do it
globally, by site, by directory and whether your Apache is configured to
allow site owners to use the directive in .htaccess.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/