1 Test\t <b>test</b> test\n (Time: 0.031976 sec.)
2 Test test test (Time: 0.032138 sec., Delta: 0.000162 sec.)
3 var = 3.14 (Time: 0.032243 sec., Delta: 0.000105 sec.)
4 var1[] = Array(3)
var2 = true
var3 = "text"
(Time: 0.032374 sec., Delta: 0.000131 sec.)
5 var = "1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890123456789012345678901234567890\n1234567890..." (Time: 0.032486 sec., Delta: 0.000112 sec.)
6 array ( 0 => 'aaa', 1 => 'bbb', 2 => 'ccc', ) (Time: 0.032586 sec., Delta: 0.000100 sec.)
7 Array ( [0] => aaa [1] => bbb [2] => ccc ) (Time: 0.032677 sec., Delta: 0.000091 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.032775 sec., Delta: 0.000098 sec.)
Input variables:
$_GET[]:
$_POST[]:
$_COOKIE[]:
$_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_HOST = "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 = "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
REMOTE_ADDR = "38.107.191.94"
REMOTE_PORT = "23161"
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[]:
MANPATH = "/usr/lib/courier-imap/man:"
TOMCAT_HOME = "/jakarta-tomcat-4.1.31"
SSL = "/usr/local/jdk/lib"
HOSTNAME = "newyork.hostforweb.net"
SHELL = "/bin/bash"
TERM = "linux"
HISTSIZE = "1000"
CATALINA_HOME = "/usr/local/jakarta/jakarta-tomcat-4.1.31"
SSH_CLIENT = "216.246.6.148 40939 45667"
SSH_TTY = "/dev/pts/1"
USER = "root"
LS_COLORS = "no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*...."
XML = "/usr/local/jdk/lib"
SSH_AUTH_SOCK = "/tmp/ssh-kclBLJK487/agent.487"
PATH = "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
MAIL = "/var/spool/mail/root"
PWD = "/home/fortsask/public_html/conal.ca"
INPUTRC = "/etc/inputrc"
JAVA_HOME = "/usr/local/jdk"
LANG = "en_US.UTF-8"
JAKARTA_HOME = "/usr/local/jakarta"
HOME = "/root"
SHLVL = "2"
LS_OPTIONS = "--color=tty -F -a -b -T 0"
JAVAMYSQL = "/usr/local/jdk/lib"
LOGNAME = "root"
SSH_CONNECTION = "216.246.6.148 40939 64.202.123.195 45667"
CLASSPATH = ".:/usr/local/jdk/lib/classes.zip:"
LESSOPEN = "|/usr/bin/lesspipe.sh %s"
RESTARTSRV = "1"
G_BROKEN_FILENAMES = "1"
_ = "/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.031976 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.032138 sec.
Delta: 0.000162 sec.
</li> <li>3. Variable content: echo psd_var($x)3 var = 3.14 Time: 0.032243 sec.
Delta: 0.000105 sec.
</li> <li>4. Multiple variable content: echo psd_var($x, $y, $z)4 var1[] = Array(3)
var2 = true
var3 = "text"
Time: 0.032374 sec.
Delta: 0.000131 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.032486 sec.
Delta: 0.000112 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.032586 sec.
Delta: 0.000100 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.032677 sec.
Delta: 0.000091 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.032775 sec.
Delta: 0.000098 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>