質問編集履歴
4
index.php追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,4 +24,14 @@
|
|
24
24
|
define('tokyo-mail', 'example@ls.jp');
|
25
25
|
define('primary-wordS', 'band,tokyo,kanto,minato');
|
26
26
|
define('num_directories', 12);
|
27
|
+
```
|
28
|
+
|
29
|
+
(index.php)
|
30
|
+
```
|
31
|
+
$ms = new box();
|
32
|
+
$center = centerquery(2);
|
33
|
+
$tok = new tok();
|
34
|
+
include_once('class'.'.php');
|
35
|
+
HtmlTemplate::t_include($tokyo->test, $west->yokohama);
|
36
|
+
exit();
|
27
37
|
```
|
3
class.php追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,4 +17,11 @@
|
|
17
17
|
```
|
18
18
|
|
19
19
|
(追加)
|
20
|
-
他の文字列になっていたところを上記のようにsaitamaに変えるとドキュメントルートが変更されました。
|
20
|
+
他の文字列になっていたところを上記のようにsaitamaに変えるとドキュメントルートが変更されました。
|
21
|
+
|
22
|
+
(class.php)
|
23
|
+
```
|
24
|
+
define('tokyo-mail', 'example@ls.jp');
|
25
|
+
define('primary-wordS', 'band,tokyo,kanto,minato');
|
26
|
+
define('num_directories', 12);
|
27
|
+
```
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
例えばhtaccessに以下のように書かれてますが、これはhtaccessを置いたディレクトリの中のファイルにアクセスした時に読み込むファイルを記述しているだけではないのでしょうか。
|
2
2
|
しかしhtaccessを書き換えると実際にドキュメントルートが変更されました。
|
3
3
|
これはどういう仕組みになっているのでしょうか。
|
4
|
+
```
|
5
|
+
php_value include_path
|
6
|
+
.:/LIbrary/Webserver/Documents/saitama/include:/LIbrary/Webserver/Documents/saitama/include/test:/LIbrary/Webserver/Documents/saitama/include/settings
|
4
7
|
|
5
|
-
```php_value include_path .:/LIbrary/Webserver/Documents/saitama/include:/LIbrary/Webserver/Documents/saitama/include/test:/LIbrary/Webserver/Documents/saitama/include/settings
|
6
|
-
php_value auto_prepend_file /LIbrary/Webserver/Documents/saitama/include/init.php
|
8
|
+
php_value auto_prepend_file /LIbrary/Webserver/Documents/saitama/include/init.php
|
9
|
+
```
|
10
|
+
(init.php)
|
7
11
|
|
8
|
-
(init.php)
|
9
|
-
``````
|
10
12
|
```
|
11
13
|
require_once "class.php";
|
12
14
|
|
13
15
|
$_GET = protector_sanitize($_GET) ;
|
14
16
|
$_POST = protector_sanitize($_POST) ;
|
15
|
-
```
|
17
|
+
```
|
18
|
+
|
19
|
+
(追加)
|
20
|
+
他の文字列になっていたところを上記のようにsaitamaに変えるとドキュメントルートが変更されました。
|
1
init.php追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,4 +3,13 @@
|
|
3
3
|
これはどういう仕組みになっているのでしょうか。
|
4
4
|
|
5
5
|
```php_value include_path .:/LIbrary/Webserver/Documents/saitama/include:/LIbrary/Webserver/Documents/saitama/include/test:/LIbrary/Webserver/Documents/saitama/include/settings
|
6
|
-
php_value auto_prepend_file /LIbrary/Webserver/Documents/saitama/include/init.php```
|
6
|
+
php_value auto_prepend_file /LIbrary/Webserver/Documents/saitama/include/init.php```
|
7
|
+
|
8
|
+
(init.php)
|
9
|
+
``````
|
10
|
+
```
|
11
|
+
require_once "class.php";
|
12
|
+
|
13
|
+
$_GET = protector_sanitize($_GET) ;
|
14
|
+
$_POST = protector_sanitize($_POST) ;
|
15
|
+
``````
|