Re: Re: fopen/fgets
| From: | Bryan Koschmann - GKT | Date: | Fri, 07 Mar 2003 17:59:26 +0000 |
| Subject: | Re: Re: fopen/fgets | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138671@lists.php.net to get a copy of this message | ||
Thanks.. I feel stupid, I wasn't paying attention. *sigh* seems to work
now :)
Bryan
On Fri, 7 Mar 2003, Adrian Ciutureanu wrote:
|you close the input file in while loop ( fclose($fp); )
|
|"Bryan Koschmann - Gkt" <gktnews@gktech.net> wrote in message
|news:Pine.LNX.4.30.0303061523280.6406-100000@penguin.gktech.net...
|> Can someone give me a hand here? I am really lost as to what is
|going on.
|> I have a file that looks like this
|>
|> user1,Store 1 - ABC street
|> user2,Store 2 - Northside
|> user3,Store 3 - East
|>
|> I try to run my code, but I get a php log filled (~33 megs, the
|input file
|> is only 12 lines):
|>
|> [06-Mar-2003 15:22:53] PHP Warning: feof(): 1 is not a valid
|File-Handle
|> resource in /home/perf/create_prefs.php on line 7
|> [06-Mar-2003 15:22:53] PHP Warning: fgets(): 1 is not a valid