Why does an URL like http://192.168.1.116/wordpress/wp-content/themes/bktf/frameworks/back-end/theme-options/options/fields/font/field_font.js.php?ver=1358535557
...ends up serving /wordpress/wp-content/themes/bktf/frameworks/back-end/theme-options.php/options/fields/font/field_font.js.php
(this is also the content of `$_SERVER['PHP_SELF']).
...in the context of having both a dir name theme-options
and a file name theme-options.php
in the same back-end
parent dir?
Also, the content of $_SERVER['SCRIPT_NAME']
is /wordpress/wp-content/themes/bktf/frameworks/back-end/theme-options.php
.
Why does Apache or the PHP module automatically add .php
at the end of a directory name just because there is a scrip with the same as the dir???
Note: I am using the default configuration for Apache and PHP for Ubuntu 12LTS server, installed via tasksel and then upgraded to PHP 5.4 with the https://launchpad.net/~ondrej/+archive/php5 PPA, with all the configuration files mostly identical with the defaults/examples - it's a basic LAMP server meant to run in a VM for dev purposes.