ID: 10853
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Could you try with server that is NOT behind firewall?
Does this happen then?


Previous Comments:
---------------------------------------------------------------------------

[2001-05-14 11:54:38] [EMAIL PROTECTED]
When I use persistent connections to a MS Sql server that is behind a firewall, If I 
refresh the page fast enough (about 10 refreshes per second) one of the connections 
will be opened with problems. I'm using ADODB and the mssql extension. However I had 
the same problem with the raw functions of php. This is the code:

Class Data_Mensajes {

    function Load(&$objMensajesNegocio) {
                $objMensajes = &$objMensajesNegocio;

                include('/usr/local/apache/componentes/adodb/adodb.inc.php');
                ADOLoadCode('mssql');
                //Nos conectamos al servidor de BD
                $con = &ADONewConnection();    
            
                if($con->PConnect("200.52.76.2","Mexmatch","qf3ae$+as","MexMatch")) {
                        $query= "Select * From Mensaje Where IDUsuarioPara = 'WERA'";
                        $result = $con->Execute($query);
                        $i=0;
                        while(!$result->EOF) {
                                //$objBusiness_Mensaje[$i] = new Business_Mensaje();
                                $objBusiness_Mensaje = new Business_Mensaje();
                                
$objBusiness_Mensaje->setIDMensaje($result->fields[0]);
                                
$objBusiness_Mensaje->setIDUsuarioDe($result->fields[1]);
                                
$objBusiness_Mensaje->setIDUsuarioPara($result->fields[2]);
                                $objBusiness_Mensaje->setSubject($result->fields[3]);
                                $objBusiness_Mensaje->setCuerpo($result->fields[4]);
                                $objBusiness_Mensaje->setFecha($result->fields[5]);
                                $objMensajes->setMensajes($objBusiness_Mensaje);
                                $result->MoveNext();
                                $i++;
                        }
                }
                $result->Close();
                $con->Close();
        }
} // Fin de Clase Data_Mensajes

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10853&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to