includes and classes

From: Date: Thu, 22 Apr 2004 04:04:10 +0000
Subject: includes and classes
Groups: php.general 
Request: Send a blank email to php-general+get-184171@lists.php.net to get a copy of this message
Hi I was wondering about includes and classes. I have a class in which depending on a member variable, i should load the proper include, which is really the proper config file for that moment. Now if i do this in the constructor i can't seem to be able to use the variables found in my config in the other member functions. Any way to set a "include 'congig.php'" as global for the whole class once instead of calling "include 'congig.php'" it in every function? Thanks for the help, Olivier Dubreuil Président dubreuilmedia www.dubreuilmedia.com 514 457 6211

« previous php.general (#184171) next »