I have a file with size of 2.67 GB (2870348740 bytes).
I want to add some data between 2296278993
- 2583313866
bytes.
I'm in Windows Server 2003 32-bit and for this reason int positive range is very low and I can't seek in large files.
Sample code:
$fp = fopen('test.mp4','r+b');
fseek($fp,2296278993);
echo ftell($fp); // returns 0 !!
ftell() returns 0 because 2296278993 is larger than range of int on the x86 platform. What else can I do?