PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Ovidiu Lesei   Easy ODS Read   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: Easy ODS Read
Retrieve data from OpenOffice spreadsheet files
Author: By
Last change:
Date: 13 years ago
Size: 704 bytes


Class file image Download
include "./easyODS.php";

 * We unpacking the *.ods files ZIP arhive to find content.xml path
 * @var String File path of the *.ods file
 * @var String Directory path where we choose to store the unpacked files must have write permissions
$path = easy_ods_read::extract_content_xml("./example.ods","./temp");

 * We create the $easy_ods_read object
 * @param Integer 0 First spreadsheet
 * @param String $path File path of the content.xml file
 * @return Object $easy_ods_read Object of the class
$easy_ods_read = new easy_ods_read(0,$path);

 * We take the needed data from the file