Posted By

inkdeep on 07/31/08


Tagged

debug inspect Learn


Versions (?)

php_inspector_inc.php


 / Published in: PHP
 

For when I catch a bad case of stupid and forget how to write simple php and I need to put the training wheels back on.

Drop this in before the closing body tag on a php page to see a list some of what is happening when the page loads.

  1. <code style="display:block;text-align:left;padding-bottom:100px;float:left;clear:both;position:relative">
  2. <pre style="display:block;text-align:left;">
  3. <?= ''.print_r($_REQUEST). print_r($_SERVER) . print_r($_GET) . print_r($_POST) . print_r($_FILES). print_r($_SESSION); ?>
  4. </pre>
  5. </code>

Report this snippet  

You need to login to post a comment.