Answer the question
In order to leave comments, you need to log in
How to split an archive into even parts using PHP?
Hello connoisseurs! I would like to archive files broken down into even parts, I wrote the following piece of heresy:
$file = 'sasha_grey.avi';
$name = 'flower';
$amount = 3;
$part = ( filesize($file) / $amount ) / 1024 + 1;
$pack = exec('rar.exe a -ep1 -m0 -v' . $part . 'k ' . $name . '.rar ' . $file);
Answer the question
In order to leave comments, you need to log in
sasha_grey.avi :D +1
try this
php.net/manual/en/rararchive.open.php#example-795
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question