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 = "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.220"
REMOTE_PORT = "34216"
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[]:
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 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>