0
我正在研究从Web服务器获取csv文件的脚本。我正在使用file_get_contents。有时我收到消息使用File_get_contents()连接超时
Warning: file_get_contents failed to open stream: Connection timed out
我认为这可能是由于网站被关闭。或者可以在网站没有问题的情况下仍然显示此警告。 CURL还提供了这个功能的优点。