我收到以下错误消息:
警告:file_get_contents(http://localhost/sample_pie.php)[function.file-get-contents]:无法打开流:连接尝试失败,因为连接方在一段时间后没有正确响应,或建立连接失败,因为连接的主机无法响应.在第206行的C:\ xampp\htdocs\EXACT\report.php中
致命错误:第206行的C:\ xampp\htdocs\EXACT\report.php超出最长执行时间60秒
这是第206行:
$url = 'http://localhost/sample_pie.php';
$img = 'C:\xampp\htdocs\piechart.jpg';
file_put_contents($img, file_get_contents($url));
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能解决这个问题?