質問編集履歴
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,13 +18,11 @@
|
|
18
18
|
|
19
19
|
```PHP
|
20
20
|
|
21
|
+
【top.php】
|
22
|
+
|
21
23
|
|
22
24
|
|
23
25
|
<?
|
24
|
-
|
25
|
-
【top.php】
|
26
|
-
|
27
|
-
|
28
26
|
|
29
27
|
|
30
28
|
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,11 +22,17 @@
|
|
22
22
|
|
23
23
|
<?
|
24
24
|
|
25
|
+
【top.php】
|
26
|
+
|
27
|
+
|
28
|
+
|
25
29
|
|
26
30
|
|
27
31
|
require_once("sample.php");
|
28
32
|
|
29
33
|
|
34
|
+
|
35
|
+
....
|
30
36
|
|
31
37
|
|
32
38
|
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,11 +22,11 @@
|
|
22
22
|
|
23
23
|
<?
|
24
24
|
|
25
|
+
|
26
|
+
|
25
27
|
require_once("sample.php");
|
26
28
|
|
27
29
|
|
28
|
-
|
29
|
-
echo $hello;
|
30
30
|
|
31
31
|
|
32
32
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,24 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
|
18
|
+
|
19
|
+
```PHP
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
<?
|
24
|
+
|
25
|
+
require_once("sample.php");
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
echo $hello;
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
?>
|
34
|
+
|
35
|
+
```
|
18
36
|
|
19
37
|
```PHP
|
20
38
|
|
@@ -51,3 +69,9 @@
|
|
51
69
|
...?>
|
52
70
|
|
53
71
|
```
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
【追記】
|
76
|
+
|
77
|
+
【sample.php】のクラスなど全部削除して、$hello='hello';のみを記述してrequire_onceで読み組みecho $helloだと「hello」が出るのでファイルパスは問題ないことが確認できています。
|