Login   Register  
PHP Classes
elePHPant
Icontem

File: usage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2004-05-29 02:29
Size: 587 bytes
 

Contents

Class file image Download
<?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();

?>