
10/05/2002, 13:14
|
|
Re: >> Ayuda con EZPublish << Y aquí estan algunas lineas del archivo al que se refiere el error (linea 37 a la 75) :
Código:
function eZMySQLDB( $server, $db, $user, $password )
{
$this->DB = $db;
$this->Server = $server;
$this->User = $user;
$this->Password = $password;
$ini =& INIFile::globalINI();
$socketPath =& $ini->read_var( "site", "MySQLSocket" );
if ( trim( $socketPath != "" ) && $socketPath != "disabled" )
{
ini_set( "mysql.default_socket", $socketPath );
}
$this->Database = mysql_pconnect( $server, $user, $password );
$numAttempts = 1;
while ( $this->Database == false && $numAttempts < 5 )
{
sleep(5);
$this->Database = mysql_pconnect( $server, $user, $password );
$numAttempts++;
}
if ( $this->Database == false )
{
// No reason to continue as nothing will work.
print( "<H1>Couldn't connect to database</H1>Please try again later or inform the system administrator." );
exit;
}
$ret = mysql_select_db( $db, $this->Database );
if ( !$ret )
{
// No reason to continue as nothing will work.
print( "<H1>MySQL Error</H1><br />" . mysql_errno( $this->Database ) . ": " . mysql_error( $this->Database )."<br /><hr />Please inform the system administrator." );
exit;
|