Re: Fsockopen and fgets problem. I'm lost need help
| From: | Matt | Date: | Thu, 08 Aug 2002 11:52:10 +0000 |
| Subject: | Re: Fsockopen and fgets problem. I'm lost need help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111630@lists.php.net to get a copy of this message | ||
>From: "Latex Master" <freeman@submission.org.ru>
>Sent: Thursday, August 08, 2002 7:39 AM
>Subject: [PHP] Fsockopen and fgets problem. I'm lost need help
> while (fgets($ns, 100000) !== "."){
Perhaps this needs to be:
while (fgets($ns, 100000) != "."){
fgets returns a string, and you're comparing identical with a single char.