全文検索:
- 01 Mail class
- var $body = ''; var $from = ''; var $fromName = ''; var $header = ''; /** * 入力チェッ... his->from = trim($this->from); $this->fromName = trim($this->fromName); $this->header = trim($this->header); if (!is_array($this->to)... ; // FROM作成 if (empty($this->fromName)) { $this->header .= "From: {$this->f
- 02 DB接続(Singleton)
- y( 'host' => '[host]', 'db' => '[db_name]', 'user' => '[db_user]', 'password... sic = 'mysql:host=' . static::$conf['host'] . ';dbname='.static::$conf['db']; $this->_db = n... ord'], array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8') ); $this->_db->setAttribute(P... ib/Database.php'); Database::$conf['host']='[host_name]'; $dbh = Database::getDb(); </code> ===== PHP