Hello,
file b.php:
PHP Code:
<?php
include('/usr/local/groundwork/core/foundation/api/php/collageapi/collage.inc.php');
$type = 'MySQL';
$server = 'localhost';
$username = 'root';
$password = '123';
$database = 'GWCollageDB';
$con = __construct($type, $server, $username, $password, $database);
?>
collage.inc.php:
/* Needed Includes */
// This assumes you have adodb in your include_path, if not, then point to where it resides.
include_once('/downloads/adodb5/adodb.inc.php');
function __construct($type, $server, $username, $password, $database) {
$this->type = $type;
$this->server = $server;
$this->username = $username;
$this->pwd = $password;
$this->database = $database;
}
adodb5 exists and is in /downloads/adodb5.
> php b.php
Fatal error: Call to undefined function __construct() in /b.php on line 11