質問編集履歴
1
書式の改善??
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,13 +12,39 @@
|
|
12
12
|
|
13
13
|
ディレクトリの状態
|
14
14
|
|
15
|
+
(.htaccess)
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
# vi .htaccess
|
20
|
+
|
21
|
+
php_value auto_prepend_file "common/D.php"
|
22
|
+
|
23
|
+
```
|
24
|
+
|
25
|
+
common/D.php
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
require_once 'C.php';
|
30
|
+
|
31
|
+
```
|
32
|
+
|
15
33
|
common/C.php
|
16
34
|
|
35
|
+
|
36
|
+
|
37
|
+
```
|
38
|
+
|
17
|
-
|
39
|
+
require_once 'A.php';
|
40
|
+
|
41
|
+
```
|
18
42
|
|
19
43
|
A.php
|
20
44
|
|
45
|
+
```
|
46
|
+
|
21
|
-
|
47
|
+
function hoge(){
|
22
48
|
|
23
49
|
$url = 現在のurlを取得する~;
|
24
50
|
|
@@ -44,13 +70,17 @@
|
|
44
70
|
|
45
71
|
}
|
46
72
|
|
73
|
+
```
|
74
|
+
|
47
75
|
B.php
|
48
76
|
|
77
|
+
```
|
78
|
+
|
49
|
-
|
79
|
+
hoge();
|
50
80
|
|
51
81
|
<h1 class="<?php echo $h1bg;?>"> ←これが表示されません。
|
52
82
|
|
53
|
-
|
83
|
+
```
|
54
84
|
|
55
85
|
ページを読み込むごとにh1のクラス名を変更して背景を変えたいというのが目的です。
|
56
86
|
|