Skip to content

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

Notifications You must be signed in to change notification settings

ManZzup/phpfsplit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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 ...

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages