Class Database に Fatal error: Cannot redeclare class Properties ....Properties.php(Properties is Near implementation of the java.util.Properties API for PHP 5 Copyright (C) 2005 Craig Manley ) というエラーが表示された Class Database があります。
<?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';
}
}
?>