Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andres Dario Gutierrez Poveda  >  PHP Script Parser  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: PHP Script Parser
Parse PHP scripts to detect usage bugs
Author: By
Last change:
Date: 2004-09-14 09:20
Size: 567 bytes
 

Contents

Class file image Download
<?php
include('/path/to/Parser.class.php');

/** Function to make the output in alfabetic order. */
function asc($a,$b){
    return 
strcmp($a['nombre'],$b['nombre']);
}

/** Instance the parser */
$parser = new Parser();

/** Set the path to the script, class to parse. */
$parser->set_archivo('/path/to/archive.php');

/** Set the colors of the headers, left panel and font of headers */
$parser->set_colores('#003399','#0099CC','#FFFFFF');

/** Parse the script, class. */
$parser->parse();

/** Show the report */
echo $parser->ver_reporte();
?>