Ajout debug

This commit is contained in:
Rodolphe Quiedeville 2005-11-21 16:36:34 +00:00
parent 8607afc479
commit 1db6868a07

View File

@ -51,7 +51,6 @@ else
exit(1); exit(1);
} }
GetPreselection_byRef($db, $host, $user_login, $user_passwd, $ids); GetPreselection_byRef($db, $host, $user_login, $user_passwd, $ids);
/* /*
@ -89,8 +88,8 @@ function GetPreselection_byRef($db, $host, $user_login, $user_passwd, $ids)
$out .= "Host: $host\r\n"; $out .= "Host: $host\r\n";
$out .= "Connection: Close\r\n\r\n"; $out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out); if (fwrite($fp, $out) )
{
while (!feof($fp)) while (!feof($fp))
{ {
$line = fgets($fp, 1024); $line = fgets($fp, 1024);
@ -128,6 +127,11 @@ function GetPreselection_byRef($db, $host, $user_login, $user_passwd, $ids)
print "$cli ErreurAPI ".$array[1]."\n"; print "$cli ErreurAPI ".$array[1]."\n";
} }
} }
}
else
{
print "Impossible d'ecrire sur la socket";
}
fclose($fp); fclose($fp);
} }
} }