@@ -49,7 +49,7 @@ class TestController extends BaseController
$image = imagecreatetruecolor($width, $height);
// 从HTML文件中读取内容
- $html = file_get_contents('<div style="color:red;">aaa</div>');
+ $html = file_get_contents('http://www.baidu.com');
// 在画布上输出HTML内容
imagestring($image, 5, 0, 0, $html, 0x000000);