Hi NG,
my problem is following:
I've write some code like this:
$sFile = fsockopen($strHost,$intPort,$intErrNum,$strError,10);
if (!empty($strError)) {
echo ("Ein Fehler ist aufgetreten : $strError");
}
else {
$strCommand = trim($strCommand);
$strAnswer = fgets($sFile,128);
fputs($sFile,$strCommand);
while(!feof($sFile)) {
$strAnswer = $strAnswer."<BR>".fgets($sFile,128);
}
echo($strAnswer."<BR>");
fclose($sFile);
The problem is that the while-loop never ends because feof() never be true.
But the manual tell me that i can use the feof()-function with fsockopen()
too.
Can somebody help??????
Thanks,
Thomas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]