note 104728 modified in reserved.variables.phperrormsg by danbrown

From: Date: Tue, 05 Jul 2011 13:43:47 +0000
Subject: note 104728 modified in reserved.variables.phperrormsg by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181248@lists.php.net to get a copy of this message
The track_errors parameter is PHP_INI_ALL, so you can use code like this: <?php ini_set('track_errors', 1); $result = @do_risky_thing(); if (! $result) { echo '<p>Error' . htmlspecialchars($php_errormsg) . '</p>'; } ini_set('track_errors', 0); ?> --was-- The track_errors parameter is PHP_INI_ALL, so you can use code like this: ini_set('track_errors', 1); $result = @do_risky_thing(); if (! $result) { echo '<p>Error' . htmlspecialchars($php_errormsg) . '</p>'; } ini_set('track_errors', 0); http://php.net/manual/en/reserved.variables.phperrormsg.php

« previous php.notes (#181248) next »