NYCPHP Meetup

NYPHP.org

[nycphp-talk] php extensions

Chris Shiflett shiflett at php.net
Mon Jul 19 19:04:16 EDT 2004


--- Mark Withington <mwithington at PLMresearch.com> wrote:
> I'm moving scripts to an ISP that wants all php files to be called via
> the .php4 extension.

Wow.

Either your ISP has reached a new level of laziness, or I'm missing
something.

> Anyone know of a quick-and-easy way of telling the new ISP's box to
> run all .php references as .php4?

There may be better ways, but I'm sure you could use ForceType in a
.htaccess file:

ForceType application/x-httpd-php

(You may be able to just use AddType, but I'm just not sure if that can be
specified at a directory level.)

You'll probably want to limit this to specific files rather than an entire
directory, so you'll want to create a section in your file using
Directory, Files, or something like that. See here for a better
description of these things:

http://httpd.apache.org/docs/sections.html

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/



More information about the talk mailing list