我经常在Nginx日志中得到这个错误:
FastCGI sent in stderr: "PHP message: PHP Warning: file_get_contents(http://instance-data/latest/user-data): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found原因是http://instance-data/latest/user-data是AWS实例用户数据,对于此服务器是空的。
在没有错误的情况下,即使user-data是空的,我怎么仍然可以读取PHP中的PHP呢?
发布于 2017-01-19 19:47:57
短暂的承诺:
@file_get_contents("http://instance-data/latest/user-data");https://stackoverflow.com/questions/41502178
复制相似问题