PHP_Debug
[ class tree: PHP_Debug ] [ index: PHP_Debug ] [ all elements ]

Source for file PHP_Debug_test.php

Documentation is available at PHP_Debug_test.php

  1. <?php
  2.  
  3. /**
  4.  * Minimal test
  5.  * 
  6.  * @package PHP_Debug
  7.  * @filesource
  8.  * 
  9.  * @version    CVS: $Id: PHP_Debug_test.php,v 1.1 2008/05/02 14:26:37 c0il Exp $
  10.  */ 
  11.  
  12. echo '<?xml version="1.0" encoding="UTF-8"?>';
  13. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  14. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">     
  15.   <head>  
  16.     <title>PEAR::PHP_Debug, Hello World !</title>
  17. <?php
  18.  
  19. // Options array for Debug object
  20. $options = array(
  21.     'HTML_DIV_images_path' => 'images'
  22.     'HTML_DIV_css_path' => 'css'
  23.     'HTML_DIV_js_path' => 'js',
  24. );
  25.  
  26. /**
  27.  * Include Debug Class
  28.  */ 
  29. include_once('PHP/Debug.php');
  30.  
  31. // Debug object
  32. $Dbg = new PHP_Debug($options);
  33.  
  34. ?>
  35.     <script type="text/javascript" src="<?php echo $options['HTML_DIV_js_path']?>/html_div.js"></script>
  36.     <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $options['HTML_DIV_css_path']?>/html_div.css" />
  37.   </head>
  38.   <body>
  39.   <div>
  40.     <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
  41.   </div>
  42. <?php
  43.  
  44. echo '<div><h1>PEAR::PHP_Debug, Hello World !</h1></div>';
  45. $Dbg->add('DEBUG INFO');
  46. $Dbg->display();
  47.  
  48. ?>
  49.   </body>
  50. </html>

Documentation generated on Mon, 11 Mar 2019 15:28:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.