PHP script gets called without extension

This is a discussion on PHP script gets called without extension within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I've seen a behavior on both my windows machine and a Linux server that php scripts get called ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-08-2006
arorap
 
Posts: n/a
Default PHP script gets called without extension

Hi,

I've seen a behavior on both my windows machine and a Linux server that

php scripts get called even when called without a .php extension.


for example,
http://srlchem.com/company/about.php
gets executed even when called as
http://srlchem.com/company/about


(you can actually verify by opening both those links)


Is anyone aware of this behaviour ? This works for all PHP files and
I've not put any configuration directive in place to make this happen.
Anyone has any clue why this happens ? .. What default configuration
can be making this happen ?


thank you,


regards,
-Puneet Arora.

  #2 (permalink)  
Old 12-08-2006
shimmyshack
 
Posts: n/a
Default Re: PHP script gets called without extension


arorap wrote:
> Hi,
>
> I've seen a behavior on both my windows machine and a Linux server that
>
> php scripts get called even when called without a .php extension.
>
>
> for example,
> http://srlchem.com/company/about.php
> gets executed even when called as
> http://srlchem.com/company/about
>
>
> (you can actually verify by opening both those links)
>
>
> Is anyone aware of this behaviour ? This works for all PHP files and
> I've not put any configuration directive in place to make this happen.
> Anyone has any clue why this happens ? .. What default configuration
> can be making this happen ?
>
>
> thank you,
>
>
> regards,
> -Puneet Arora.



you have
multiviews
after an options directive somewhere in the relevant for that
directory.

multiviews allows apache to serve negotiated content, usually used for
internationalisation say
index.html.en
index.html.fr,
but works with any extension, once the file is internally requested any
parsing directives that apply to it are then applied.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0