質問編集履歴
1
エラー追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
file_get_contentsでパスが存在しなかった場合、PHPエラーが出てしまうので、
|
1
|
+
file_get_contentsでファイルを取得することは出来るのですが、パスが存在しなかった場合、PHPエラーが出てしまうので、例外処理で対応したいです。
|
2
|
-
例外処理で対応したいです。
|
3
2
|
|
3
|
+
ErrorException in ContactController.php line 65:
|
4
|
+
file_get_contents(/home/$uuid/result.json): failed to open stream: No such file or directory
|
5
|
+
|
4
6
|
ケアレスミスだと思うのですが、どこが間違っているのか調べてもわかりません。
|
5
7
|
お願いします。
|
6
8
|
```lang-php
|
7
|
-
$path = "/home/
|
9
|
+
$path = "/home/$uuid/result.json";
|
8
10
|
|
9
11
|
/*
|
10
12
|
$context = stream_context_create(array(
|