RE: [PHP-WIN] Warning: 1 is not a valid File-Handle resource
| From: | Richard Kurth | Date: | Tue, 03 Apr 2001 07:25:54 +0000 |
| Subject: | RE: [PHP-WIN] Warning: 1 is not a valid File-Handle resource | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6450@lists.php.net to get a copy of this message | ||
No fgetcsv allows three fgetcsv (int fp, int length [, string delimiter])
and as I sead it worked fine untel I upgraded php and apache.
> I know that fget() only allows for 2 parameters. That is fget(value,value)
> Is it possible that the same applies to fgetcsv()? Because I used to
> get the same error when I tried to add to many parameters.
>
> >
> > I am using the newest ver of PHP and newest ver of apache on win98
> > just installed new php and apache yesterday set php up as a module
> >
> > What is causing this error
> > It worked fine until I added the new ver of php and apache
> >
> > Warning: 1 is not a valid File-Handle resource in
> > c:/httpd/htdocs/autosetup/auto/createaccount.php on line 88
> >
> > This is the cod in question
> >
> > $tab = chr(9); // define tabulator
> > if(file_exists("userdata")) {
> > $fp2=fopen ("userdata","r")or die("unable to open file
> > ($userdata)");
> > flock($fp2, 2); //unless ($use_flock == 0);
> > while ($data = fgetcsv ($fp2, 1000, $tab)) { <---this is line 88
> > $num = count ($data);
> > $row++;
> > for ($c=0; $c<$num; $c++) {
> >
> > }
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-windows-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>