Login   Register  
PHP Classes
elePHPant
Icontem

File: serverCheck.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Giampaolo Losito  >  IFile  >  serverCheck.php  >  Download  
File: serverCheck.php
Role: Example script
Content type: text/plain
Description: Example script
Class: IFile
Index and search documents using Lucene or MySQL
Author: By
Last change:
Date: 2013-11-08 03:40
Size: 1,104 bytes
 

Contents

Class file image Download
<?php
/**
 * IFile framework
 * 
 * Lo script serve solo a verificare se sono installate tutte le librerie necessarie al  
 * corretto funzionamento di IFile all'interno dell'ambiente dove questa verra' utilizzata.
 * 
 * @category   IndexingFile
 * @package    ifile
 * @author        Giampaolo Losito, Antonio Di Girolomo
 * @copyright
 * @license       GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999
 * @version    1.0 serverCheck.php 2011-01-18 22:11:43
 */

/** LuceneServerCheck */
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'servercheck/LuceneServerCheck.php';

// instanzia la classe LuceneServerCheck
$serverCheck LuceneServerCheck::getInstance();
// richiama il metodo di controllo
$serverCheck->serverCheck();
// recupera l'array degli oggetti di check
//$reportCheck = $serverCheck->getReportCheck();

// presenta a video il risultato del controllo:
// in formato tabellare se richiamato da browser
// in linea se richiamato da shell
if (empty($argv)) {
    
$serverCheck->printReportCheck();
} else {    
    
$serverCheck->printReportCheckCLI();
}
?>