shish 2 ani în urmă
părinte
comite
f30ee48936
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      app-ghs/controllers/TestController.php

+ 1 - 1
app-ghs/controllers/TestController.php

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