質問編集履歴
1
タグとコードの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,3 +25,29 @@
|
|
25
25
|
どこが間違っているのか教えていただきたいです。
|
26
26
|
|
27
27
|
よろしくお願いします。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
//////追記//////
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
```php
|
36
|
+
|
37
|
+
$path='/storage/logs/articles/';
|
38
|
+
|
39
|
+
$file=$path.$id.'.log';
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
if(file_exists($path) and is_dir($path)){
|
44
|
+
|
45
|
+
if(!file_exists($file)){
|
46
|
+
|
47
|
+
touch($file);
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
}
|
52
|
+
|
53
|
+
```
|