Re: Re: PHP Directory List Script Files over 2 GB
| From: | Richard Lynch | Date: | Thu, 12 Apr 2007 00:48:21 +0000 |
| Subject: | Re: Re: PHP Directory List Script Files over 2 GB | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252658@lists.php.net to get a copy of this message | ||
On Wed, April 11, 2007 3:36 pm, Robert M wrote:
> Does anyone else have any other ideas how to resolve this, I have
> tried
> multiple different methods all failed.
>
> Does the 2 GB limitation using filesize have an alternate method of
> producing the output. ?
>
> Thank you Logan for trying.
The first thing I'd recommend is writing a one-line test script that did:
<?php echo filesize('/full/path/to/some/monster/file/here');?>
As it stands now, I just deleted your emails as they were MUCH too
long...
That said, PHP will handle INT only up to ~2 billion, so I don't quite
know how it could come back as what you want, unless the function
returns 'text' datatype, which I doubt...
I do recall discussion of this and some kind of solutions from way
back when...
If nothing else, you could use http://php.net/exec to ask the OS
how
big the file is, and bypass filesize altogether.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?