我遇到了以下错误信息:
警告:file_get_contents(http://localhost/sample_pie.php) [function.file-get-contents]:未能打开流:连接方在一段时间后没有正确答复,或已建立的连接失败,因为连接的主机没有响应。在 C:\xampp\htdocs\EXACT\report.php 的第206行
致命错误:C:\xampp\htdocs\EXACT\report.php 的第206行超出了60秒的最大执行时间
这是第206行的代码:
$url = 'http://localhost/sample_pie.php';
$img = 'C:\xampp\htdocs\piechart.jpg';
file_put_contents($img, file_get_contents($url));
我需要做什么来修复这个问题?