S
S
Sergey Karbivnichy2015-02-01 00:09:32
PHP
Sergey Karbivnichy, 2015-02-01 00:09:32

How to split binary file in php into 2 parts?

There is a 4 GB file on the server, you need to split it into parts of 2 GB. The script is probably not complicated, but I dug into google, I did not find anything. Maybe someone can write or who has such a script? Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Gubarev, 2015-02-01
@AlexGx

The task is elementary for arithmetic and knowledge of f-th work with fread / fwrite files. Since I'm too lazy to write a link to an article with a ready-made solution. www.devshed.com/c/a/php/how-to-split-a-file-during...
Also if you have a VDS/VPS you can use the nix commandsplit

Z
zooks, 2015-02-01
@zooks

PHP will choke. It's better to login via SSH and split via Linux commands.
And you can also download it for yourself, split it under Windows and already upload the finished files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question