|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-11 10:57 UTC] chagenbu at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 21:00:01 2025 UTC |
thanks for your response... but I could't solve the problem. my source(test) ---------------------------------------------------------------------- <? // news2.kornet.net connect $getline=""; $handle = fsockopen("news2.kornet.net",119); $getline = fgets($handle, 1024); $code = explode(" ",$getline); if (strcmp($code[0], "200") ) { fputs($handle,"close\r\n"); fclose($handle); return "connect error( news server )"; // 비정상시 } // news group connect $newsgroup="han.comp.os.linux"; fputs($handle,"group $newsgroup\r\n"); $getline = fgets($handle,1024); $code = explode(" ",$getline); if (strcmp($code[0], "211") ) { fputs($handle,"close\r\n"); fclose($handle); return group; // connect error (group) } fputs($handle,"article\r\n"); $getline = fgets($handle, 1024); $code = explode(" ",$getline); if( strcmp($code[0], "220") ) { fputs($handle,"close\r\n"); fclose($handle); return article; } for($a=0; $a<30; $a++) { // I guess this part may have some problems... $getline = fgetss($handle, 1024); // this function, htmlspecialchars() is not solusion... $getline = htmlspecialchars($getline); echo("<br>"); // so.I tried to use the function,strlen() // echo strlen($getline); in order to check the fgetss // function.. echo($getline); echo ("<br>"); } fputs($handle,"close\r\n"); fclose($handle); ?> -------------------------------------------------------------------- result -------------------------------------------------------------------- ... Message-ID: 14 // fgetss function returns just 14... References: 14 // fgetss function returns just 14... ... -------------------------------------------------------------------- I think that the fgetss function is not suitable... Is there auy other function like imap_header()? I really need your help... so, please help me.... Break a leg...