1 Test\t <b>test</b> test\n (Time: 0.002026 sec.)
2 Test test test (Time: 0.002147 sec., Delta: 0.000121 sec.)
3 var = 3.14 (Time: 0.002233 sec., Delta: 0.000086 sec.)
4 var1[] = Array(3)
var2 = true
var3 = "text"
(Time: 0.002347 sec., Delta: 0.000114 sec.)
5 var = "1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890..." (Time: 0.002454 sec., Delta: 0.000107 sec.)
6 array ( 0 => 'aaa', 1 => 'bbb', 2 => 'ccc', ) (Time: 0.002562 sec., Delta: 0.000108 sec.)
7 Array ( [0] => aaa [1] => bbb [2] => ccc ) (Time: 0.002643 sec., Delta: 0.000081 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.002736 sec., Delta: 0.000093 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.216"
REMOTE_PORT = "34538"
SCRIPT_FILENAME = "/home/atrisec/public_html/php-script-debugger/examples/example4.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/example4.php"
SCRIPT_NAME = "/php-script-debugger/examples/example4.php"
PATH_TRANSLATED = "/home/atrisec/public_html/php-script-debugger/examples/example4.php"
PHP_SELF = "/php-script-debugger/examples/example4.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 4

PHP Script Debugger Examples

This example demonstrates of using Debug Points to display texts and PHP variables. Place the mouse cursor over debug points (green rectangles).

This PHP code generates for you:

Debug Points also visible in HTML Source Panel.

<!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 4</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 4</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 4</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 Debug Points to display
texts and PHP variables. Place the mouse cursor over debug points (green rectangles).</p>
<p>This PHP code generates for you:</p><ul>
<li>1. Text output: echo psd_text("Test\t &lt;b&gt;test&lt;/b&gt; test\n")1
Test\t <b>test</b> test\n


Time: 0.002026 sec.
</li> <li>2. HTML output: echo psd_html("Test\t &lt;b&gt;test&lt;/b&gt; test\n")2 Test test test Time: 0.002147 sec.
Delta: 0.000121 sec.
</li> <li>3. Variable content: echo psd_var($x)3 var = 3.14 Time: 0.002233 sec.
Delta: 0.000086 sec.
</li> <li>4. Multiple variable content: echo psd_var($x, $y, $z)4 var1[] = Array(3)
var2 = true
var3 = "text"
Time: 0.002347 sec.
Delta: 0.000114 sec.
</li> <li>5. Very long text variable with truncation: echo psd_var($x)5 var = "1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890..." Time: 0.002454 sec.
Delta: 0.000107 sec.
</li> <li>6. Using psd_var_export to see arrays and objects: echo psd_var_export($x)6 array ( 0 => 'aaa', 1 => 'bbb', 2 => 'ccc', ) Time: 0.002562 sec.
Delta: 0.000108 sec.
</li> <li>7. Using psd_print_r to see arrays and objects: echo psd_print_r($x)7 Array ( [0] => aaa [1] => bbb [2] => ccc ) Time: 0.002643 sec.
Delta: 0.000081 sec.
</li> <li>8. Using psd_zval_dump to see arrays and objects: echo psd_zval_dump($x)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.002736 sec.
Delta: 0.000093 sec.
</li></ul><p>Debug Points also visible in HTML Source Panel.</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>