RE: [PHP-WIN] Warning: 1 is not a valid File-Handle resource
| From: | Mangiola Nunzio arivia.kom | Date: | Tue, 03 Apr 2001 06:03:13 +0000 |
| Subject: | RE: [PHP-WIN] Warning: 1 is not a valid File-Handle resource | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6449@lists.php.net to get a copy of this message | ||
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.
> ----------
> From: Richard Kurth[SMTP:rkurth@pacifier.com]
> Sent: Tuesday, April 03, 2001 7:13 AM
> To: php-windows
> Subject: [PHP-WIN] Warning: 1 is not a valid File-Handle resource
>
> 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
>