RE: [PHP] remote call - no return
| From: | Jay Blanchard | Date: | Wed, 21 May 2003 20:14:40 +0000 |
| Subject: | RE: [PHP] remote call - no return | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148440@lists.php.net to get a copy of this message | ||
This just occurred to me...why does there need to be a while loop?
-----Original Message-----
From: Wendell Brown [mailto:wbrown@arkie.net]
Sent: Wednesday, May 21, 2003 3:10 PM
To: php-general@lists.php.net; Thomas Hochstetter
Subject: Re: [PHP] remote call - no return
On Wed, 21 May 2003 22:01:49 +0200 (MEST), Thomas Hochstetter wrote:
> while(!feof($f))
> {
> $line = fgets($f,100); //supposed to get the id
back?
> $id = $line;
> }
I suspect that your problem is that you are overwriting your result with
a blank line. Try this:
while(!feof($f))
$line .= fgets($f,100); //supposed to get the id back?
Then echo $line.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php