Classes and Includes

From: Date: Tue, 13 Dec 2005 20:57:27 +0000
Subject: Classes and Includes
Groups: php.db 
Request: Send a blank email to php-db+get-40862@lists.php.net to get a copy of this message
Hi There, Question: How do I include a file or another class, such as a database connection (table, username, password, etc...) into a class? I don't want to to change the username and password on every class(file) that I upload to the server? I'm just picking up this OO stuff, I'm sort of a newbee. ;) Any help would be appreciated. For example: <?php class SomeClass { var someVarable; public function SomeFunction { //run some query from the MySQL... } } ?> Thanks, Craig

« previous php.db (#40862) next »