PHP Classes

File: usage.php

Recommend this page to a friend!
  Classes of Ben Yacoub Hatem   File Split   usage.php   Download  
File: usage.php
Role: Example script
Content type: text/plain
Description: Sample usage of the class
Class: File Split
Split text files in multiple parts
Author: By
Last change:
Date: 18 years ago
Size: 587 bytes


Class file image Download

 * Sample usage of the filesplit class
 * @package filesplit
 * @author Ben Yacoub Hatem <>
 * @copyright Copyright (c) 2004
 * @version $Id$ - 29/05/2004 09:14:06 - usage.php
 * @access public


$s = new filesplit;

* You can configure this way
$s->Setsource("logs.txt"); File to split
$s->Setpath("logs/"); Folder to create new files
$s->Setlines(100); How many line per new file
* Or using the configure method :
$s->configure("logs.txt", "logs/", 2000);