Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/05/2002, 13:14
Chente_Fox
Invitado
 
Mensajes: n/a
Puntos:
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-&gt;DB = $db;
        $this-&gt;Server = $server;
        $this-&gt;User = $user;
        $this-&gt;Password = $password;

        $ini =&amp; INIFile::globalINI();

        $socketPath =&amp; $ini-&gt;read_var( &quot;site&quot;, &quot;MySQLSocket&quot; );

        if ( trim( $socketPath != &quot;&quot; ) &amp;&amp; $socketPath != &quot;disabled&quot; )
        {
            ini_set( &quot;mysql.default_socket&quot;, $socketPath );
        }
        
        $this-&gt;Database = mysql_pconnect( $server, $user, $password );
        $numAttempts = 1;
        while ( $this-&gt;Database == false &amp;&amp; $numAttempts &lt; 5 )
        {
            sleep(5);
            $this-&gt;Database = mysql_pconnect( $server, $user, $password );
            $numAttempts++;
        }

        if ( $this-&gt;Database == false )
        {
            // No reason to continue as nothing will work.
            print( &quot;&lt;H1&gt;Couldn't connect to database&lt;/H1&gt;Please try again later or inform the system administrator.&quot; );
            exit;
        }
        
        $ret = mysql_select_db( $db, $this-&gt;Database );
             
        if ( !$ret )
        {
            // No reason to continue as nothing will work.
            print( &quot;&lt;H1&gt;MySQL Error&lt;/H1&gt;&lt;br /&gt;&quot; . mysql_errno( $this-&gt;Database ) . &quot;: &quot; . mysql_error( $this-&gt;Database ).&quot;&lt;br /&gt;&lt;hr /&gt;Please inform the system administrator.&quot; );
            exit;