A php function to split a given file to parts based on the specified buffer size
PHP
Switch branches/tags
Nothing to show
Latest commit 900ac52 Oct 30, 2013 @ManZzup ManZzup Update README.md
Permalink
Failed to load latest commit information.
README.md Update README.md Oct 30, 2013
index.php Create index.php Oct 30, 2013
phpfsplit.php Create phpfsplit.php Oct 30, 2013

README.md

phpfsplit : File Splitter function for php

A php function to split a given file to parts based on the specified buffer size.

How to use?

  1. Include phpfsplit.php
  2. Use fsplit($filename,$buffer)
fsplit($filename, $buffer)

$filename : path to the file that should be splitted (ex: files/myfile.jpg)

$buffer : size of a part of a file. Defined in BYTES. Default is 1kb(== 1024) (ex: 4096 for 4kb)

return : array of string ; the paths to the splits

Splits are named as filename.part0 filename.part1 ...