Notice Undefined variable: x in /home/atrisec/public_html/php-script-debugger/examples/example2.php on line 9
Warning assert() [function.assert]: Assertion failed in /home/atrisec/public_html/php-script-debugger/examples/example2.php on line 12
Warning Division by zero in /home/atrisec/public_html/php-script-debugger/examples/example2.php on line 15
User Notice My Notice in /home/atrisec/public_html/php-script-debugger/examples/example2.php on line 18
User Error My Error in /home/atrisec/public_html/php-script-debugger/examples/example2.php on line 21
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 = "12199"
SCRIPT_FILENAME = "/home/atrisec/public_html/php-script-debugger/examples/example2.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/example2.php"
SCRIPT_NAME = "/php-script-debugger/examples/example2.php"
PATH_TRANSLATED = "/home/atrisec/public_html/php-script-debugger/examples/example2.php"
PHP_SELF = "/php-script-debugger/examples/example2.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 2

PHP Script Debugger Examples

This example demonstrates the Message Panel. It shows PHP notices, warnings, errors and your own messages. This PHP code generates for you:

<!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 2</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 2</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 2</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 the Message Panel.
It shows PHP notices, warnings, errors and your own messages.
This PHP code generates for you:</p><ul>
<li>PHP Notice (Undefined variable $x)</li>
<li>PHP Assertion (assert($x === null))</li>
<li>PHP Warning (Division by zero)</li>
<li>User Notice (trigger_error with E_USER_NOTICE)</li>
<li>User Error (trigger_error with E_USER_ERROR)</li></ul></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>