<?php
/**
* Sample usage of the filesplit class
*
* @package filesplit
* @author Ben Yacoub Hatem <hatem@php.net>
* @copyright Copyright (c) 2004
* @version $Id$ - 29/05/2004 09:14:06 - usage.php
* @access public
**/
require_once("filesplit.class.php");
$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);
$s->run();
?>
|