[FX.php List] A question about PHP in pages
Kevin Futter
kfutter at sbc.melb.catholic.edu.au
Tue Dec 19 18:24:30 MST 2006
On 20/12/06 11:17 AM, "Bob Patin" <bob at patin.com> wrote:
> Is it mandatory to name a page containing PHP with the ".php" extension?
>
> One of my friends told me that she has some pages with the ".htm"
> extension, and because of the way her web server is configured, these
> pages process their embedded PHP without trouble.
>
> I thought the PHP extension was mandatory, or did they change their
> web server so that .htm pages are considered to be PHP pages also?
>
> Thanks,
>
> Bob Patin
Hi Bob,
If you're using Apache, you can configure it to pass any kind of file you
like to the PHP server for parsing. I can't remember how to do it exactly,
but IIRC it's a matter of using AddFileType in httpd.conf. You can even name
all your files with a made up extension (.bob for example), and have the
server pass them all to PHP for processing.
--
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/
------------------------------------------
This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College.
More information about the FX.php_List
mailing list