1 Test\t <b>test</b> test\n (Time: 0.002105 sec.)
2 Test test test (Time: 0.002229 sec., Delta: 0.000124 sec.)
3 var = 3.14 (Time: 0.002324 sec., Delta: 0.000095 sec.)
4 var1[] = Array(3)
var2 = true
var3 = "text"
(Time: 0.002451 sec., Delta: 0.000127 sec.)
5 var = "1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890..." (Time: 0.002562 sec., Delta: 0.000111 sec.)
6 array ( 0 => 'aaa', 1 => 'bbb', 2 => 'ccc', ) (Time: 0.002667 sec., Delta: 0.000105 sec.)
7 Array ( [0] => aaa [1] => bbb [2] => ccc ) (Time: 0.002755 sec., Delta: 0.000088 sec.)
8 array(3) refcount(1){ [0]=> string(3) "aaa" refcount(2) [1]=> string(3) "bbb" refcount(2) [2]=> string(3) "ccc" refcount(2) } (Time: 0.002851 sec., Delta: 0.000096 sec.)
Input variables:
$_GET[]:
$_POST[]:
$_COOKIE[]: (delete all)
abc = "def" (delete)
qqq = "www" (delete)
$_FILES[]:
$_SERVER[]:
DOCUMENT_ROOT = "/home/atrisec/public_html"
HTTP_ACCEPT = "text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
HTTP_ACCEPT_CHARSET = "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
HTTP_ACCEPT_ENCODING = "gzip"
HTTP_ACCEPT_LANGUAGE = "en-us,en;q=0.5"
HTTP_CACHE_CONTROL = "no-cache"
HTTP_CONNECTION = "close"
HTTP_COOKIE = "abc=def; qqq=www"
HTTP_HOST = "www.atrise.com"
HTTP_PRAGMA = "no-cache"
HTTP_USER_AGENT = "CCBot/1.0 (+http://www.commoncrawl.org/bot.html)"
HTTP_X_CC_ID = "ccc02-01"
PATH = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
REMOTE_ADDR = "38.107.179.219"
REMOTE_PORT = "40011"
SCRIPT_FILENAME = "/home/atrisec/public_html/php-script-debugger/examples/example3.php"
SERVER_ADDR = "205.234.212.94"
SERVER_ADMIN = "webmaster@atrise.com"
SERVER_NAME = "www.atrise.com"
SERVER_PORT = "80"
SERVER_SIGNATURE = "<ADDRESS>Apache/1.3.41 Server at www.atrise.com Port 80</ADDRESS>\n"
SERVER_SOFTWARE = "Apache/1.3.41 (Unix) mod_deflate/1.0.21 mod_jk/1.2.23 mod_fastcgi/2.4.2 PHP/5.2.3 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.9 FrontPage/5.0.2.2634a mod_ssl/2.8.31 OpenSSL/0.9.7a"
TMPDIR = "/tmp"
GATEWAY_INTERFACE = "CGI/1.1"
SERVER_PROTOCOL = "HTTP/1.1"
REQUEST_METHOD = "GET"
QUERY_STRING = ""
REQUEST_URI = "/php-script-debugger/examples/example3.php"
SCRIPT_NAME = "/php-script-debugger/examples/example3.php"
PATH_TRANSLATED = "/home/atrisec/public_html/php-script-debugger/examples/example3.php"
PHP_SELF = "/php-script-debugger/examples/example3.php"
argv[] = Array(0)
argc = 0 (0x0)
$_ENV[]:
SELINUX_INIT = "YES"
CONSOLE = "/dev/console"
TERM = "linux"
INIT_VERSION = "sysvinit-2.85"
PATH = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
RUNLEVEL = "3"
runlevel = "3"
PWD = "/"
LANG = "en_US.UTF-8"
PREVLEVEL = "N"
previous = "N"
HOME = "/"
SHLVL = "2"
_ = "/usr/local/apache/bin/httpd"
$GLOBALS[]:

Example 3

PHP Script Debugger Examples

This example demonstrates of using Message Panel to display texts and PHP variables. This PHP code generates for you:

You can also see all the script global variables after the script execution in the Script Information and Tools Panel ($title, $x, $y, $z).

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHP Script Debugger - Example 3</title>
<link rel="stylesheet" type="text/css" href="inc/examples.css" />
</head><body>
<div id="head"><div id="head_in">
<div id="head_logo"><a href="http://www.atrise.com/"><img src="inc/logo.gif" alt="Atrise"/></a></div>
<div id="head_bc">&rarr; <a href="http://www.atrise.com/php-script-debugger/">PHP Script Debugger</a>
 &rarr; Example 3</div>
<div id="head_menu"><a href="http://www.atrise.com/software/">Software</a>
&bull; <a href="http://www.atrise.com/solutions/">Solutions</a>
&bull; <a href="http://www.atrise.com/buy/">Buy</a>
&bull; <a href="http://www.atrise.com/support/">Support</a>
</div>
</div></div><div id="content">

<div id="head139">
<h1>Example 3</h1>PHP Script Debugger Examples</div>
<div class="menu"><a href="./">Examples Index</a>
&bull; <a href="example1.php">Example 1</a>
&bull; <a href="example2.php">Example 2</a>
&bull; <a href="example3.php">Example 3</a>
&bull; <a href="example4.php">Example 4</a>
&bull; <a href="example5.php">Example 5</a>
&bull; <a href="example6.php">Example 6</a>
&bull; <a href="example7.php?psd_astext=1">Example 7</a>
    
</div>
<p>This example demonstrates of using Message Panel to display texts and PHP variables.
This PHP code generates for you:</p><ul>
<li>1. Text output: psd_text("Test\t &lt;b&gt;test&lt;/b&gt; test\n")</li>
<li>2. HTML output: psd_html("Test\t &lt;b&gt;test&lt;/b&gt; test\n")</li>
<li>3. Variable content: psd_var($x)</li>
<li>4. Multiple variable content: psd_var($x, $y, $z)</li>
<li>5. Very long text variable with truncation: psd_var($x)</li>
<li>6. Using psd_var_export to see arrays and objects: psd_var_export($x)</li>
<li>7. Using psd_print_r to see arrays and objects: psd_print_r($x)</li>
<li>8. Using psd_zval_dump to see arrays and objects: psd_zval_dump($x)</li></ul><p>You can also see all the script global variables after the script
execution in the Script Information and Tools Panel ($title, $x, $y, $z).</p></div><div id="foot"><div id="foot_in">
&copy;&nbsp;Andrew&nbsp;Revvo, Atrise&nbsp;Software, 1999&mdash;2008
<script type="text/javascript" src="/inc/stat.js"></script></div></div>
</body></html>