Reply to Re: PHP with no file extension

Your name:

Reply:


Posted by Andy Hassall on 12/16/66 11:59

On 29 Sep 2006 14:39:10 -0700, "Benjamin" <musiccomposition@gmail.com> wrote:

>Hi, I'm running PHP as an Apache module. I've always wondered how you
>set Apache up to parse a file as PHP without a file extension. Do you
>use the AddType directive?

Some possibilities:

MultiViews - Apache picks an appropriate file based on the start of the
filename. You can have other types of files, e.g. images, in the same
directories, although there's some overhead to the way Apache picks files.

ForceType - force all files in a directory to be run as PHP. Pretty simple,
but don't put any other files in the same directory.

RewriteRule - mod_rewrite can do all sorts of transformations from URLs to
files, adding a .php extension would be a trivial rule.

The alt.apache.configuration group should be able to give more detail.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация