PHP Classes

File: usage.php

Recommend this page to a friend!
  Classes of Huynh Hai Huynh   File2XML   usage.php   Download  
File: usage.php
Role: Example script
Content type: text/plain
Description: Useage file
Class: File2XML
Generate XML documents from directory file data
Author: By
Last change:
Date: 18 years ago
Size: 822 bytes
 

Contents

Class file image Download
<?
/*===============================
  - Class: File2XML
  - Author: Huynh Hai Huynh
  - Email: Huynhhaihuynh@gmail.com
  - Website: http://www.php.net.vn
  - Usage.php
===============================*/
require_once("class_file2xml.php");
$k = new file2xml;

$k->folder_read = "./test/"; // Folder ctontains file need encode

$k->folder_save = "./"; // Folder save XMLoutput file

$k->xml_write = "dump_file.xml"; // File name XML

$k->time_limit = "600"; // Time execution

$k->size_limit = "500000000"; // LIMIT bytes for per file

$k->ext_read = array("jpg","htm","css","js","NULL"); // Null is file without extension
/*
 array("doc","mpg","txt","php","gif");
 EG: file no exteions key in array is NULL
 array("NULL","mpg","txt","php","gif");

*/

echo $k->listfile();

?>