09/07/2006, 19:38
|
| | | Fecha de Ingreso: diciembre-2005
Mensajes: 113
Antigüedad: 18 años, 3 meses Puntos: 0 | |
Que prodia ser Cita:
Iniciado por calavera Hola amigos tengo el siguiente problema
Al momento de llamar a ala pag. del servidor web me arroja el siguieente error Fatal error: Call to undefined function: adonewconnection() in /home/sjoven/public_html/includes/pnAPI.php on line 424 Código PHP: function pnDBInit() { // Get database parameters $dbtype = $GLOBALS['pnconfig']['dbtype']; $dbhost = $GLOBALS['pnconfig']['dbhost']; $dbname = $GLOBALS['pnconfig']['dbname']; $dbuname = $GLOBALS['pnconfig']['dbuname']; $dbpass = $GLOBALS['pnconfig']['dbpass']; $pconnect = $GLOBALS['pnconfig']['pconnect']; // Start connection $GLOBALS['pndbconn'] =& ADONewConnection ($dbtype); [COLOR="Red"][SIZE="5"]linea 424[/SIZE][/COLOR] if ($pconnect) { $dbh =& $GLOBALS['pndbconn']->PConnect($dbhost, $dbuname, $dbpass, $dbname); } else { $dbh =& $GLOBALS['pndbconn']->Connect($dbhost, $dbuname, $dbpass, $dbname); } if (!$dbh) { //$dbpass = ""; //die("$dbtype://$dbuname:$dbpass@$dbhost/$dbname failed to connect" . $dbconn->ErrorMsg()); die("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>PostNuke powered Website</title>\n</head>\n<body>\n<center>\n<h1>Problem in Database Connection</h1>\n<br /><br />\n<h5>This Website is powered by PostNuke</h5>\n<a href=\"http://www.postnuke.com\" target=\"_blank\"><img src=\"images/powered/postnuke.butn.gif\" border=\"0\" alt=\"Web site powered by PostNuke\" hspace=\"10\" /></a> <a href=\"http://php.weblogs.com/ADODB\" target=\"_blank\"><img src=\"images/powered/adodb2.gif\" alt=\"ADODB database library\" border=\"0\" hspace=\"10\" /></a><a href=\"http://www.php.net\" target=\"_blank\"><img src=\"images/powered/php2.gif\" alt=\"PHP Scripting Language\" border=\"0\" hspace=\"10\" /></a><br />\n<h5>Although this site is running the PostNuke software<br />it has no other connection to the PostNuke Developers.<br />Please refrain from sending messages about this site or its content<br />to the PostNuke team, the end will result in an ignored e-mail.</h5>\n</center>\n</body>\n</html>"); } global $ADODB_FETCH_MODE; $ADODB_FETCH_MODE = ADODB_FETCH_NUM; // force oracle to a consistent date format for comparison methods later on if (strcmp($dbtype, 'oci8') == 0) { $GLOBALS['pndbconn']->Execute("alter session set NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS'"); } return true; } |