note 84751 added to class.pdo

From: Date: Mon, 28 Jul 2008 17:00:16 +0000
Subject: note 84751 added to class.pdo
Groups: php.notes 
Request: Send a blank email to php-notes+get-142862@lists.php.net to get a copy of this message
class PDOConfig extends PDO { private $engine; private $host; private $database; private $user; private $pass; public function __construct(){ $this->engine = 'mysql'; $this->host = 'localhost'; $this->database = ''; $this->user = 'root'; $this->pass = ''; $dns = $this->engine.':dbname='.$this->database.";host=".$this->host; parent::__construct( $dns, $this->user, $this->pass ); } } ---- Server IP: 69.147.83.197 Probable Submitter: 201.42.42.30 ---- Manual Page -- http://www.php.net/manual/en/class.pdo.php Edit -- https://master.php.net/note/edit/84751 Del: integrated -- https://master.php.net/note/delete/84751/integrated Del: useless -- https://master.php.net/note/delete/84751/useless Del: bad code -- https://master.php.net/note/delete/84751/bad+code Del: spam -- https://master.php.net/note/delete/84751/spam Del: non-english -- https://master.php.net/note/delete/84751/non-english Del: in docs -- https://master.php.net/note/delete/84751/in+docs Del: other reasons-- https://master.php.net/note/delete/84751 Reject -- https://master.php.net/note/reject/84751 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#142862) next »