function __construct($configfile = "config.php") { self::$configfile = $configfile; $file = fopen(self::$configfile, "r"); while (!feof($file)) { $this->configdata .= fread($file, 1024); } fclose($file); }