Re: "FileSize" --> fread($fd, 7000)

From: Date: Thu, 16 Aug 2001 12:24:57 +0000
Subject: Re: "FileSize" --> fread($fd, 7000)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63014@lists.php.net to get a copy of this message
Hi, It doesnt' matter what you're doing, filesize will give you what it reads from the particular file. --- Augusto Cesar Castoldi <Augusto.Castoldi@uol.com.br> wrote: > ops. > > I forgot to say. > > but I'm calling a script, so I get diferents > filesizes > > $fd = fopen("http://localhost/script.php", > "r"); > $aux = fread($fd, 700000); > fclose($fd); > > Can I now the size of "$fd"? Well, I need to ready > all $fd. > thanks. > > Augusto > ----- Original Message ----- > From: Mukul Sabharwal <mukulsabharwal@yahoo.com> > To: Augusto Cesar Castoldi > <Augusto.Castoldi@uol.com.br>; > <php-general@lists.php.net> > Sent: Thursday, August 16, 2001 9:08 AM > Subject: Re: [PHP] "FileSize" --> fread($fd, 7000) > > > > Hi, > > > > fread($fd, filesize("somefile.txt")); > > > > --- Augusto Cesar Castoldi > > <Augusto.Castoldi@uol.com.br> wrote: > > > Hi. > > > > > > instead use "7000" in "fread($fd, 7000)", i'd > like > > > to use the size of the > > > file opened. How can I know the size of the > fopen? > > > > > > thanks. > > > > > > Augusto > > > > > > > > > -- > > > 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 > > > > > > > > > ===== > > ********************************* > > http://www.geocities.com/mimodit > > ********************************* > > > > __________________________________________________ > > Do You Yahoo!? > > Make international calls for as low as $.04/minute > with Yahoo! Messenger > > http://phonecard.yahoo.com/ > > > > -- > > 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 > > > > > > ===== ********************************* http://www.geocities.com/mimodit ********************************* __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

« previous php.general (#63014) next »