473,320 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

apache 1.3.x and the php file extension

A curious observation:

I have my apache web server configured for the PHP apache module to
parse files ending in the .php extension.

nothing unusual about that, but I also noticed that if I leave the file
extension off completely, not only does apache map it to the
corresponding php file, but it allows the php module to parse it
accordingly.

for instance...
Lets say I have a file called foo.php in the document root. Normally, I
could access it like so
http://localhost/foo.php
but as it turns out, I can also access it like so
http://localhost/foo
and I do not have any folders off the document root named "foo".

I'm using apach 1.3.24 with PHP v4.3.2-RC1 running on windows XP pro SP1

Jul 16 '05 #1
1 3289
Hi Terence,

that's Apaches multiview feature.
See http://httpd.apache.org/docs/content-negotiation.html

Cheers
Frank

Terence wrote:
A curious observation:

I have my apache web server configured for the PHP apache module to
parse files ending in the .php extension.

nothing unusual about that, but I also noticed that if I leave the file
extension off completely, not only does apache map it to the
corresponding php file, but it allows the php module to parse it
accordingly.

for instance...
Lets say I have a file called foo.php in the document root. Normally, I
could access it like so
http://localhost/foo.php
but as it turns out, I can also access it like so
http://localhost/foo
and I do not have any folders off the document root named "foo".

I'm using apach 1.3.24 with PHP v4.3.2-RC1 running on windows XP pro SP1


Jul 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ole Kramer, SFS GmbH | last post by:
We have installed PHP 5.0.1 on a Windows 2003 Server with IIS6 in ISAPI mode. The processing of .php files works fine with our basis version of the php.ini file. But, as soon as we edit the php.ini...
7
by: RC | last post by:
First, let me say I couldn't find a group discuss XML/XSLT. So I only choose the closest groups to post this message. Here is part of my *.xsl file <xsl:stylesheet...
14
by: Jim Carlock | last post by:
I have a couple easy questions possibly. 1) Is there a default.php page? The webserver seems to support default.htm, default.html, index.htm and index.html. It's an Apache server, I'd like to...
18
by: rfhurley | last post by:
How do I run a .php program? (I'm starting with the "hello world" script)
3
by: Paul Furman | last post by:
I'm trying to set up a web page for credit card transactions and baffled trying to find a download for mhash functions for my windows apache development server. The real server supports mhash but I...
2
gauravgmbhr
by: gauravgmbhr | last post by:
hi m working with PHP and i wrote some Test cases for each of my function i want to follow the notation file name = name.php test file = name.phpt so i need to add new extension called...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
9
by: Christopher Koeber | last post by:
Hello, I am attempting to perform a PHP installation on an Apache 2.2.6 web server instance that is loaded on a Windows 2003 server operating system (R2 SP2). I have a third party application...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.