Bug #10853 Updated: PConnect through firewall
| From: | andy@php.net | Date: | Sun, 22 Jul 2001 16:59:39 +0000 |
| Subject: | Bug #10853 Updated: PConnect through firewall | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60630@lists.php.net to get a copy of this message | ||
ID: 10853
Updated by: andy
Reported By: jesus.estrada@qnet.com.mx
Old Status: Feedback
Status: Closed
Bug Type: Sybase (dblib) related
Operating System: RH6.2
PHP Version: 4.0.4pl1
New Comment:
no feedback after 40 days.
Previous Comments:
------------------------------------------------------------------------
[2001-06-12 17:43:55] sniper@php.net
Could you try with server that is NOT behind firewall?
Does this happen then?
------------------------------------------------------------------------
[2001-05-14 11:54:38] jesus.estrada@qnet.com.mx
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
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10853&edit=1