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.
|
|
<?php require_once "/var/www/html/pedvenesp/prgdmug/F_DMUG.php";
$v_nro = ""; foreach($_POST as $campo => $valor) { if($campo=="n_ped") $v_nro=$valor;
} error_log("------: " . $v_nro); $server= "localhost"; $port = 1030; $hs = "DEMIURGO10-MCANET"; $user = "general"; $pass = "123456789"; error_log("Buscando productos por medio de filtros"); $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( "Confirma_pedesp" );
$ConDMUG->SetParameter( "pedido" , $v_nro );
if ( $ConDMUG->Execute_DMUG() < 0) { $veces_error_server++; if ( $veces_error_server > 2 ) { exit(); } sleep(3); continue; } error_log("XML: " . $ConDMUG->xmlraw); $RESULTADO = $ConDMUG->GetChild( "STRERROR" ); echo json_encode($ConDMUG->xmlrequest); $ConDMUG->CloseConex(); exit();
?>
|