Re: fgets($fp, 4096); What does the 4096

From: Date: Mon, 23 Oct 2000 22:26:58 +0000
Subject: Re: fgets($fp, 4096); What does the 4096
Groups: php.general 
Request: Send a blank email to php-general+get-21900@lists.php.net to get a copy of this message
Sorry to interrupt a bit...I'm still don't undertsand..."maximum size of string read"....how to count the size...I mean is it in bytes..??.. I got some code as below....Will it come to a maximum size where the code cannot read...??..If so, is there any way to solve the problem..??. $fd = fopen($file,"r"); while (!feof ($fd)) { $buffer = fgets($fd,4096); return $buffer; } fclose ($fd); Thanx... --- Marco Roccioletti <marco.roccioletti@inalp.com> wrote: > It's the maximum size of the string read. > > Marco > > PS: The manual should say that, too. > > On Mon, 23 Oct 2000, Boris.C wrote: > > Hi there... > > > > I ask myself, what 4096 means... the maximum > ammount of characters or bits > > in a line? > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: > php-general-help@lists.php.net > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/

« previous php.general (#21900) next »