【发布时间】:2013-01-18 19:56:05
【问题描述】:
为什么像http://192.168.1.116/wordpress/wp-content/themes/bktf/frameworks/back-end/theme-options/options/fields/font/field_font.js.php?ver=1358535557这样的网址
...最终为/wordpress/wp-content/themes/bktf/frameworks/back-end/theme-options.php/options/fields/font/field_font.js.php 提供服务(这也是`$_SERVER['PHP_SELF'] 的内容)。
...在同一 back-end 父目录中同时具有目录名称 theme-options 和文件名称 theme-options.php 的情况下?
另外,$_SERVER['SCRIPT_NAME'] 的内容是/wordpress/wp-content/themes/bktf/frameworks/back-end/theme-options.php。
为什么 Apache 或 PHP 模块会自动在目录名末尾添加.php 只是因为有一个与 dir 相同的脚本???
注意:我在 Ubuntu 12LTS 服务器上使用 Apache 和 PHP 的默认配置,通过 tasksel 安装,然后使用 https://launchpad.net/~ondrej/+archive/php5 PPA 升级到 PHP 5.4,所有配置文件大多与默认值/示例相同 - 它是一个基本的 LAMP 服务器,旨在在 VM 中运行以用于开发目的。
【问题讨论】:
标签: php apache lamp apache-config