You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
1.1 KiB

<?php
require_once "/var/www/html/dionisio/prgdmug/F_DMUG.php";
$v_nro = "";
foreach($_POST as $campo => $valor)
{
if($campo=="pileta")
$v_nro=$valor;
}
$server= "localhost";
$port = 1030;
$hs = "DEMIURGO10-MCANET";
$user = "general";
$pass = "123456789";
$pid = getmypid();
$limit = 100;
$veces_error_server = 0;
/* Crea un objeto para el manejo postgres */
$ConDMUG = new ConexDMUG( $server , $port , $hs ,$user , $pass );
$ConDMUG->SetProgram( "Descripcion" );
$ConDMUG->SetParameter( "nro" , $v_nro );
$ConDMUG->SetParameter( "nro" , $v_nro );
if ( $ConDMUG->Execute_DMUG() < 0)
{
$veces_error_server++;
if ( $veces_error_server > 2 )
{
Finalizar();
}
sleep(3);
continue;
}
$RESULTADO = $ConDMUG->GetChild( "STRERROR" );
echo json_encode($ConDMUG->xmlrequest);
$ConDMUG->CloseConex();
Finalizar();
/***********************************************************************/
function Finalizar()
{
exit();
}
?>