demo.php:复制代码 代码如下:<?php/*** 读取 sql 文件并写入数据库* @version 1.01 demo.php*/class DBManager{ var $dbHost = ”; var $dbUser = ”; var $dbPassword = ”; var $dbSchema = ”; function __construct($host,$user,$password,$schema) { $this->dbHost = $host; $this->dbUser = $user;