How to use "stream_get_line" multiple times?
<p>I would like to declare multiple variables using the output of my script and the <a href="http://php.net/manual/en/function.stream-get-line.php" rel="nofollow">stream_get_line</a> php function.</p>

<p>Example:</p>

<pre><code>&lt;?php

$fp = fsockopen("10.73.xxx.xxx", "23");

fputs($fp,"user\r");
sleep(1);
fputs($fp,"password\r");
sleep(1);

$content = stream_get_line($fp, 100, "user");
$content2 = stream_get_line($fp, 100, "password");


echo $content;
echo $content2;
?&gt;
</code></pre>

<p>However, the script stops working after I use the stream_get_line once. How can I use it multiple times to grab multiple lines of output? It works fine if I remove the second stream_get_line function.</p>
