Gentoo Archives: gentoo-user

From: Michael Crute <mcrute@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] PHP and files over 2 Gb
Date: Mon, 22 Aug 2005 14:45:47
Message-Id: 558b73fb050822073555e91a00@mail.gmail.com
In Reply to: Re: [gentoo-user] PHP and files over 2 Gb by "A. Khattri"
1 According to the top line of that PHP document you should be able to
2 add `-D_LARGEFILE_SOURCE
3 -D_FILE_OFFSET_BITS=64` to your cflags and recompile PHP to make everything
4 work!
5
6 -Mike
7
8 On 8/22/05, A. Khattri <ajai@××××.net> wrote:
9 >
10 > On Mon, 22 Aug 2005, Jim Hatfield wrote:
11 >
12 > > I just bought a Pinnacle ShowCenter and am using it with some
13 > > Apache/PHP/MySQL code to play mpeg movie files to a TV.
14 > >
15 > > It appears that PHP as built can't handle files over 2Gb - I
16 > > get warnings whenever the application peruses a directory with
17 > > such files in it.
18 > >
19 > > I had a look at the USE flags for PHP but didn't see anything
20 > > obvious. Is there an easy way to build PHP to have large file
21 > > support?
22 >
23 > http://us3.php.net/manual/en/ref.filesystem.php
24 >
25 > Dont know how to switch on those flags but maybe a developer can help.
26 >
27 >
28 >
29 > --
30 >
31 > --
32 > gentoo-user@g.o mailing list
33 >
34 >
35
36
37 --
38 ________________________________
39 Michael E. Crute
40 Software Developer
41 SoftGroup Development Corporation
42
43 Linux, because reboots are for installing hardware.
44 "In a world without walls and fences, who needs windows and gates?"