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.  
  10. echo '<?xml version="1.0" encoding="UTF-8"?>';
  11. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">     
  13.   <head>  
  14.     <title>PEAR::PHP_Debug, Hello World !</title>
  15. <?php
  16.  
  17. // Options array for Debug object
  18. $options = array(
  19.     'HTML_DIV_images_path' => 'images'
  20.     'HTML_DIV_css_path' => 'css'
  21.     'HTML_DIV_js_path' => 'js',
  22. );
  23.  
  24. /**
  25.  * Include Debug Class
  26.  */ 
  27. include_once('PHP/Debug.php');
  28.  
  29. // Debug object
  30. $Dbg = new PHP_Debug($options);
  31.  
  32. ?>
  33.     <script type="text/javascript" src="<?php echo $options['HTML_DIV_js_path']?>/html_div.js"></script>
  34.     <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $options['HTML_DIV_css_path']?>/html_div.css" />
  35.   </head>
  36.   <body>
  37.   <div>
  38.     <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>
  39.   </div>
  40. <?php
  41.  
  42. echo '<div><h1>PEAR::PHP_Debug, Hello World !</h1></div>';
  43. $Dbg->add('DEBUG INFO');
  44. $Dbg->display();
  45.  
  46. ?>
  47.   </body>
  48. </html>

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