FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | List of all members
file Class Reference

Static Public Member Functions

static split ($filename, $output_dir=FALSE, $piece_size=10)
 Split a file into pieces matching a specific size.
static join ($filename, $output=FALSE)
 Join a split file into a whole file.
static extension ($filename)

Member Function Documentation

static file::join (   $filename,
  $output = FALSE 
)
static

Join a split file into a whole file.

Parameters
stringsplit filename, without .000 extension
stringoutput filename, if different then an the filename
Returns
integer The number of pieces that were joined.
static file::split (   $filename,
  $output_dir = FALSE,
  $piece_size = 10 
)
static

Split a file into pieces matching a specific size.

Parameters
stringfile to be split
stringdirectory to output to, defaults to the same directory as the file
integersize, in MB, for each chunk to be
Returns
integer The number of pieces that were created.

The documentation for this class was generated from the following file: