質問編集履歴
2
誤記修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
$fp = fopen("b_text.html","w");
|
52
52
|
|
53
|
-
fwrite("hugahuga");
|
53
|
+
fwrite($fp,"hugahuga");
|
54
54
|
|
55
55
|
fclose($fp);
|
56
56
|
|
1
エラーログについて追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -23,6 +23,18 @@
|
|
23
23
|
echo file_get_contents("http://hoge.jp/b.php");
|
24
24
|
|
25
25
|
```
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
上記実行で、下記のようなエラーログが出ます。
|
30
|
+
|
31
|
+
```apache
|
32
|
+
|
33
|
+
Warning: file_get_contents(http://hoge.jp/b.php): failed to open stream: HTTP request failed! in /var/www/html/index.php on line 6
|
34
|
+
|
35
|
+
```
|
36
|
+
|
37
|
+
|
26
38
|
|
27
39
|
|
28
40
|
|