-2
我有類數據庫與錯誤致命錯誤:無法重新聲明類屬性.... Properties.php(屬性是近java.util的實現。屬性API爲PHP 5版權所有(C)2005克雷格萬利)致命錯誤:無法重新聲明類屬性....屬性.php
<?php
include_once("common/libs/Properties.php");
// if (!class_exists('Properties')) {
// require_once("common/libs/Properties.php");
// }
class Database {
var dbhost;
function __construct() {
$dbIpAddressProp = new Properties();
// $dbIpAddressProp->load(file_get_contents('./confEMS',FILE_USE_INCLUDE_PATH));
// $this->dbhost = $dbIpAddressProp->getProperty("dbIpAddress");
}
function __destruct() {
pg_close($this->dbconn);
// echo 'destruct';
}
}
?>
和Properties.php裏面有什麼? –
錯誤消息應該提供更多信息,例如最初聲明屬性的位置以及要重新聲明它的位置 –
它是一個API:PHP 5的java.util.Properties API的實現版權所有(C )2005年Craig Manley – user1310873