shish 2 лет назад
Родитель
Сommit
cf5c1aa4fa
1 измененных файлов с 7 добавлено и 6 удалено
  1. 7 6
      app-ghs/controllers/TestController.php

+ 7 - 6
app-ghs/controllers/TestController.php

@@ -39,6 +39,7 @@ class TestController extends BaseController
 
 
     public function actionIp()
     public function actionIp()
     {
     {
+        phpinfo();die;
         error_reporting(-1);
         error_reporting(-1);
 //        $ip = $_SERVER['SERVER_ADDR'] ?? '';
 //        $ip = $_SERVER['SERVER_ADDR'] ?? '';
 //        echo $ip;
 //        echo $ip;
@@ -50,12 +51,12 @@ class TestController extends BaseController
 //            file_get_contents("http://www.google.co.uk")));
 //            file_get_contents("http://www.google.co.uk")));
 //        $converter->convert();
 //        $converter->convert();
 
 
-        $converter = new ImageConverter(null, [
-            "fmt" => "png",
-            "in" => "https://www.baidu.com",
-            "out" => "test.png"
-        ]);
-        $converter->convert();
+//        $converter = new ImageConverter(null, [
+//            "fmt" => "png",
+//            "in" => "https://www.baidu.com",
+//            "out" => "test.png"
+//        ]);
+//        $converter->convert();
 
 
     }
     }