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.
 
 
 
 
 
 

50 lines
926 B

<?php
require_once "/var/www/html/dionisio/prgdmug/F_DMUG.php";
$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( "Totales" );
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();
}
?>