|
@@ -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();
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|