Re: [PHP] Wrong parameter count for fgets
Warning: Wrong parameter count for fgets() in I had this error on of my scripts, any ideas on this part? Well, I typed fgets into the search for field on a page at php.net, left the in the field set to function list, and clicked the little non-descript arrow to the right of that, and I found this: http://www.php.net/manual/en/function.fgets.php From what it says on that page, I would guess that less than one or greater than two would be a wrong count. I note that the first argument would appear to be the file pointer fopen would return. The second is explained to be an optional limit to the number of bytes to be read. How come this error occur? My guess is that you tried to pass fgets either the wrong number or the wrong type of arguments. -- Joel Rees, programmer, Kansai Systems Group Altech Corporation (Alpsgiken), Osaka, Japan http://www.alpsgiken.co.jp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Wrong parameter count for fgets
Without seeing any code, we can only guess. But do you have at least two, and no more than three parameters for the fputs() fuction? fputs (PHP 3, PHP 4 ) fputs -- Writes to a file pointer Description int fputs ( resource handle, string str [, int length]) fputs() is an alias to fwrite(), and is identical in every way. Note that the length parameter is optional and if not specified the entire string will be written. --- Miranda, Joel Louie M [EMAIL PROTECTED] wrote: Warning: Wrong parameter count for fgets() in I had this error on of my scripts, any ideas on this part? How come this error occur? -- Thank you, Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Mark Weinstock [EMAIL PROTECTED] *** You can't demand something as a right unless you are willing to fight to death to defend everyone else's right to the same thing. *** __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Wrong parameter count for fgets
Warning: Wrong parameter count for fgets() in I had this error on of my scripts, any ideas on this part? How come this error occur? -- Thank you, Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php