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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to