PHP Classes

File: index3.php

Recommend this page to a friend!
  Classes of Johan Barbier   PHP Debugger and Helper   index3.php   Download  
File: index3.php
Role: Example script
Content type: text/plain
Description: example
Class: PHP Debugger and Helper
Log errors and check PHP code
Author: By
Last change: changed the exemple
Date: 17 years ago
Size: 463 bytes
 

Contents

Class file image Download
<?php
header
('Content-type: text/html; charset=utf-8');
require_once
'class/odebugger.cls.php';
$odebug = new odebugger ('FR');
$odebug -> CSS = 'default';
$odebug -> HTML = 'default';

$odebug -> LOGFILE = false; // set log to file off

/**
* example on how to check a given code (here, odebugger will evaluate the code in the 'test.php' file)
*/
$odebug -> checkCode ('test.php'); // or
//$odebug -> checkCode (file_get_contents ('test.php'));
?>