Re: PHP and Xbithack ?
| From: | Teodor Cimpoesu | Date: | Tue, 03 Oct 2000 15:26:17 +0000 |
| Subject: | Re: PHP and Xbithack ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18434@lists.php.net to get a copy of this message | ||
Hi pgregg-php!
On Tue, 03 Oct 2000, pgregg-php@niweb.com wrote:
> Purely for cosmetic reasons, but...
>
> Has anyone provided a way for PHP to be executed based upon the executable
> bits of the filename. Exactly like apache/mod_include's XBitHack directive.
>
> I don't want to put the files in a cgi directory or write the programs
> as a php cgi - I'd like to create a file called e.g.
> directory (no extension) set executable on it and then be able to
> call:
> http://www.mydom.com/directory/Category/SubCategory/etc/etc
> which would parse directory as PHP and then have
> PATH_INFO = "/directory/Category/SubCategory/etc/etc"
>
> If I call the file directory.php then the above happens... I'd be nice for
> some purposes to be able to drop the ".php" extension and an "XBitHack"
> seems
> to be a good way to do it.
you can set this with a per-directory ForceType directive. You can name
your files however you want, then tell Apache all are application/x-httpd-php.
-- teodor