From 5bdfb057b3cb139414850ecd676d7bfc07c4f57a Mon Sep 17 00:00:00 2001 From: Wisp X <1591788658@qq.com> Date: Fri, 23 Nov 2018 09:49:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5=E8=AF=BB=E5=8F=96sql?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=86=85=E5=AE=B9=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/controller/Install.php b/application/index/controller/Install.php index d9291fc8..7438c1ea 100644 --- a/application/index/controller/Install.php +++ b/application/index/controller/Install.php @@ -56,7 +56,7 @@ class Install extends Controller $password = $this->request->post('password'); $hostport = $this->request->post('hostport'); try { - if (!$sqlFile = file_get_contents($rootPath . 'install.sql')) { + if (!$sqlFile = @file_get_contents($rootPath . 'install.sql')) { throw new Exception('安装文件不存在'); } $mysqli = new \mysqli($hostname, $username, $password, $database, $hostport);