例えばhtaccessに以下のように書かれてますが、これはhtaccessを置いたディレクトリの中のファイルにアクセスした時に読み込むファイルを記述しているだけではないのでしょうか。
しかしhtaccessを書き換えると実際にドキュメントルートが変更されました。
これはどういう仕組みになっているのでしょうか。
php_value include_path .:/LIbrary/Webserver/Documents/saitama/include:/LIbrary/Webserver/Documents/saitama/include/test:/LIbrary/Webserver/Documents/saitama/include/settings php_value auto_prepend_file /LIbrary/Webserver/Documents/saitama/include/init.php
(init.php)
require_once "class.php"; $_GET = protector_sanitize($_GET) ; $_POST = protector_sanitize($_POST) ;
(追加)
他の文字列になっていたところを上記のようにsaitamaに変えるとドキュメントルートが変更されました。
(class.php)
define('tokyo-mail', 'example@ls.jp'); define('primary-wordS', 'band,tokyo,kanto,minato'); define('num_directories', 12);
(index.php)
$ms = new box(); $center = centerquery(2); $tok = new tok(); include_once('class'.'.php'); HtmlTemplate::t_include($tokyo->test, $west->yokohama); exit();