Re[4]: [PHP] Fsockopen and fgets problem. I'm lost need help

From: Date: Thu, 08 Aug 2002 13:13:50 +0000
Subject: Re[4]: [PHP] Fsockopen and fgets problem. I'm lost need help
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-111639@lists.php.net to get a copy of this message
Hello Matt, Nope you can see what goes via: http://devzone.nesthost.ru/nntp Thursday, August 8, 2002, 4:28:48 PM, you wrote: M> >>>From: "Latex Master" <freeman@submission.org.ru> >>>>Sent: Thursday, August 08, 2002 7:39 AM M> >>>Subject: [PHP] Fsockopen and fgets problem. I'm lost need help >>>> while (fgets($ns, 100000) !== "."){ >>> >>> M> Perhaps this needs to be: >>> M> while (fgets($ns, 100000) != "."){ >>> >>> While (fgets($ns, 100000) !== "."){ >>> echo fgets($ns, 100000)."<br>"; M> >> } >>> M> fgets returns a string, and you're comparing identical with a single M> char. >>From: "Latex Master" <freeman@submission.org.ru> >>Sent: Thursday, August 08, 2002 7:59 AM >>Subject: Re[2]: [PHP] Fsockopen and fgets problem. I'm lost need help >> Hello Matt, >> Tried it also. and get the same >> Thursday, August 8, 2002, 3:52:10 PM, you wrote: M> Sorry, I didn't read far enough. I think you're dropping the response into M> the bit bucket because you're oing a second read and echoing it. This ought M> to read: M> while (($str = fgets($ns, 100000)) != "."){ M> echo "$str<br>"; M> } -- Best regards, Latex mailto:freeman@submission.org.ru

« previous php.general (#111639) next »