first php 5 class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, trying to write my first php5 class. This is my first project using all OOP PHP5.2.5.

I want to create a config class, which is extended by a connection class, which is extended by a database class. Here is my config class, how am I looking?

<?php

class dbconfig {
	public $connInfo = array();
	public $connInfo[$hostname] = 'internal-db.s23499.gridserver.com';
	public $connInfo[$username] = 'db23499';
	public $connInfo[$password] = 'ryvx4398';
	public $connInfo[$database] = 'db23499_donors';

	public __construct() {
		return $this->$connInfo;
	}
}

?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux