Location: PHPKode > scripts > phpDebugger > index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="alternate" type="application/rss+xml" title="ROR" href="ror.xml">
<title>PHP Script Debugger - phpDebugger</title>
<meta name="copyright" content="Phil Petree">
<meta name="publisher" content="http://www.philpetree.com/phpDebugger">
<meta name="abstract" content="Simple php debugger">
<meta name="author" content="Phil Petree">
<meta name="description" content="Simple PHP Debugger">
<meta name="Keywords"    content="php debugger, debug, debugging, php, OutputDebugString, phpDebugger">
<meta name="revisit-after" content="1 day">
<meta name="robots" content="index, follow">
<link href="debugstyle.css" rel="stylesheet" type="text/css">

<!-- 
Duplicate description content here for search engine
 -->
<script type = "text/javascript">

// define out interval variables
var nIndex = "";
var nTimeout = "";
var intVal = "";
function RefreshHandler()
{ 
  // clear any existing intervals
  window.clearInterval(intVal);

  //verify that auto refresh is selected 
  var auto = document.getElementById("auto"); 
  if (auto.checked)
  { 
    //extract the refresh interval from the refesh form 
    nIndex = document.refresh.interval.selectedIndex; 
    nTimeout = document.refresh.interval.options[nIndex].value * 1000; 
    //set auto refresh interval on the refresh form submit function 
    intVal = window.setInterval("document.refresh.submit()", nTimeout);
  }
}

function setTable(what)
{
  if(document.getElementById(what).style.display=="none")
  {
  document.getElementById(what).style.display="block";
  }
  else if(document.getElementById(what).style.display=="block")
  {
  document.getElementById(what).style.display="none";
  }
}
 
</script> 
</head>
<body font='arial' onLoad='RefreshHandler();'>

<table width="100%" border='0'>
  <!-- Begin Variable Selection Form -->  
  <tr>
    <td colspan='2' align='center'>
      <form action='debug_show_vars.php' target='variables' method='post'>
      <fieldset>
      <Legend><b>Select The Variables You Want <a href="#" onclick="setTable('variables');return false"> +/-</a></b></legend>
      <table id='variables' border='0' cellpadding='10' style='display:block;'>
        <tr>
          <td><input type='checkbox' name='GLOBALS' value='GLOBALS' />$GLOBALS</td>
          <td><input type='checkbox' name='_SERVER' value='_SERVER' />$_SERVER</td>
          <td><input type='checkbox' name='_GET' value='_GET' />$_GET</td>
          <td><input type='checkbox' name='_POST' value='_POST' />$_POST</td>
          <td><input type='checkbox' name='_FILES' value='_FILES' />$_FILES</td>
          <td><input type='checkbox' name='argc' value='argc' />$argc</td>
          <td><input type='checkbox' name='HTTP_RAW_POST_DATA' value='HTTP_RAW_POST_DATA' />$HTTP_RAW_POST_DATA</td>
        </tr>
        <tr>
          <td><input type='checkbox' name='_REQUEST' value='_REQUEST' />$_REQUEST</td>
          <td><input type='checkbox' name='_ENV' value='_ENV' />_ENV</td>
          <td><input type='checkbox' name='_SESSION' value='_SESSION' />$_SESSION</td>
          <td><input type='checkbox' name='_COOKIE' value='_COOKIE' />$_COOKIE</td>
          <td><input type='checkbox' name='php_errormsg' value='php_errormsg' />$php_errormsg</td>
          <td><input type='checkbox' name='argv' value='argv' />$argv</td>
          <td><input type='checkbox' name='http_response_header' value='http_response_header' />$HTTP_RESPONSE_HEADER</td>
        </tr>
        <tr>
          <td colspan='6' align='center'>
            <input type='Submit' Value='Show Variables'> <input type='reset' value='Clear Selections'>
          </FORM>
          </td>
          <td align='center'>
            <form action='delete_debug.php' method='post'>
              <input type='submit' onclick="return confirm('Are you sure you want to delete all debug entries?')" value='Clear Debug Table'>
            </form>
          </td>
        </tr>
      </table>
      </fieldset>
      </form>    
    </td>
  </tr>
  <!-- End Variable Selection Form -->
  <tr>
    <td>&nbsp;</td>
    <td colspan='2' align='center'>
      <form name='refresh' method='post' action='debugview.php' target='debug'> 
        Auto Refresh <input id='auto' type='checkbox' checked='checked' onClick="RefreshHandler()"/> 
        Update interval (in seconds): <select name='interval' id='interval' onchange="RefreshHandler()"> 
          <option value="1">1</option> 
          <option value="3">3</option> 
          <option value="5" selected="selected">5</option> 
          <option value="10">10</option> 
          <option value="20">20</option> 
          <option value="30">30</option> 
          <option value="40">40</option> 
          </select> 
      </form>
    </td>
  </tr>  

  <tr>
    <!-- Begin variable output window -->
    <td valign='top' width='30%'>
    <fieldset>
    <Legend><b>Variables</b></legend>
    <iframe src ='' width="100%" height="500" scrolling='auto' frameborder='0' marginheight='0' align='top' name='variables'>
      <p>Your browser does not support iframes.</p>
    </iframe>    
    </fieldset>
    </td>
    <!-- End Variable output window -->
    
    <!-- Begin User Content / workspace -->
    <td valign='top'>
    <fieldset>
    <Legend><b>Debug Output</b></legend>
    <iframe src ='debugview.php' width="100%" height="500" scrolling='auto' frameborder='0' marginheight='0' align='top' name='debug'>
      <p>Your browser does not support iframes.</p>
    </iframe>
    </fieldset>
    </td>
    <!-- End User Content / workspace -->
  </tr>
  
  <!-- Begin Page Footer -->  
  <tr>
    <!-- Copyrights -->
    <td colspan="3" align='center'>
      <p>Copyright (c) 2010 - <a href='http://www.philpetree.com/phpdebugger'>Phil Petree.</a>  All rights reserved worldwide.    
    </td>
  </tr>
  <!-- End Page Footer -->  
  
</table>
</body>
</html>
Return current item: phpDebugger