質問編集履歴
5
#の前の全角スペースを消した。
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,9 +74,9 @@
|
|
74
74
|
|
75
75
|
$fp = fopen($filename,'a');
|
76
76
|
|
77
|
-
$dataFile = explode(" ",$filename) ;
|
77
|
+
$dataFile = explode(" ",$filename) ; #ここがうまくいっていません!
|
78
78
|
|
79
|
-
fwrite($fp,
|
79
|
+
fwrite($fp,count(file($dataFile[0]))."<>".$_POST["name"]."<>".$_POST["comment"]."<>".date( "Y年m月d日 H:i:s" ));
|
80
80
|
|
81
81
|
fwrite($fp,"\n");
|
82
82
|
|
4
微調整 dataFile → detaFile[0]
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
$dataFile = explode(" ",$filename) ; #ここがうまくいっていません!
|
78
78
|
|
79
|
-
fwrite($fp,(count(file($dataFile))
|
79
|
+
fwrite($fp,(count(file($dataFile[0]))."<>".$_POST["name"]."<>".$_POST["comment"]."<>".date( "Y年m月d日 H:i:s" ));
|
80
80
|
|
81
81
|
fwrite($fp,"\n");
|
82
82
|
|
3
誤字訂正 dateFile →detaFile
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
$fp = fopen($filename,'a');
|
76
76
|
|
77
|
-
$dat
|
77
|
+
$dataFile = explode(" ",$filename) ; #ここがうまくいっていません!
|
78
78
|
|
79
79
|
fwrite($fp,(count(file($dataFile)))."<>".$_POST["name"]."<>".$_POST["comment"]."<>".date( "Y年m月d日 H:i:s" ));
|
80
80
|
|
2
誤字訂正 テキストの中身→関数の実行
test
CHANGED
File without changes
|
test
CHANGED
@@ -134,7 +134,7 @@
|
|
134
134
|
|
135
135
|
|
136
136
|
|
137
|
-
###
|
137
|
+
###関数の実行
|
138
138
|
|
139
139
|
```txt
|
140
140
|
|
@@ -150,7 +150,7 @@
|
|
150
150
|
|
151
151
|
```
|
152
152
|
|
153
|
-
期待される
|
153
|
+
期待される関数の実行
|
154
154
|
|
155
155
|
```txt
|
156
156
|
|
1
テキストファイルの中身を載せます。
test
CHANGED
File without changes
|
test
CHANGED
@@ -129,3 +129,39 @@
|
|
129
129
|
|
130
130
|
|
131
131
|
(count(file($dataFile)))のcountをsizeofにしてみたがうまくいかなかった。
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
###テキストファイル中身
|
138
|
+
|
139
|
+
```txt
|
140
|
+
|
141
|
+
1<>test<>test<>2018年10月12日 23:58:20
|
142
|
+
|
143
|
+
1<>test<>test<>2018年10月12日 23:58:32
|
144
|
+
|
145
|
+
1<>test<><>2018年10月12日 23:58:38
|
146
|
+
|
147
|
+
1<>test<>実験<>2018年10月12日 23:58:46
|
148
|
+
|
149
|
+
1<>リンゴ<>test<>2018年10月13日 12:52:09
|
150
|
+
|
151
|
+
```
|
152
|
+
|
153
|
+
期待される中身
|
154
|
+
|
155
|
+
```txt
|
156
|
+
|
157
|
+
1<>test<>test<>2018年10月12日 23:58:20
|
158
|
+
|
159
|
+
2<>test<>test<>2018年10月12日 23:58:32
|
160
|
+
|
161
|
+
3<>test<><>2018年10月12日 23:58:38
|
162
|
+
|
163
|
+
4<>test<>実験<>2018年10月12日 23:58:46
|
164
|
+
|
165
|
+
5<>リンゴ<>test<>2018年10月13日 12:52:09
|
166
|
+
|
167
|
+
```
|