fgets doesn't read from popen?
| From: | Chhai Thach | Date: | Wed, 21 Aug 2002 03:07:16 +0000 |
| Subject: | fgets doesn't read from popen? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-87209@lists.php.net to get a copy of this message | ||
Hi everyone
I'm trying to read from a popen ($file, r) and fgets in PHP.
The output is like this in perl:
print join ("\t", $_, $b->{one}, $b->{two}, $b->{three}, $b->{four}),
"\n";
I've also added another column to the beginning of it, so the output would
be:
name one two three four
name etc ect etc etc
I used popen to open this file and then use fgets to read it. The fgets can
only read the 'name' part but cannot read the rest? Does anyone one know why
this is happening?
Appreciate your help
Chhai Thach