Re: PHP files without extension

From: Jeffrey Silverman (jeffrey_at_pantsjhu.edu)
Date: 08/31/04


Date: Tue, 31 Aug 2004 14:07:59 -0400

On Tue, 31 Aug 2004 10:39:25 +0000, Ian.H wrote:

> If this is on a Unix box, just dropping the extension and providing you
> have '<?php' at the top, the files should be parsed as PHP files.
>
> Unlike windoze, Unix doesn't stupidly rely on the file extension to tell
> the OS what the file is.

While the second part is true, the first part is not -- quite. Since
Apache is doing the parsing and not your Unix box, you *do* have to tell
Apache how to parse the files if you want them to be seen by the PHP
engine.

So I think that, as far as web serving goes, a similarly configured Apache
server on *either* Unix or Windows will work the same way. Because the OS
is not doing the parsing -- Apache is.

Not sure how you can configure PHP parsing for files with no extension,
but I would wager it can be done.

-- 
    Jeffrey D. Silverman | jeffreyPANTS@jhu.edu **
                 Website | http://www.newtnotes.com
(** Drop "pants" to reply by email)


Relevant Pages