I am trying to access the last error message using the superglobal $php_errmsg. But trying to acess that var gives a "not defined" error ...

Running this script gives me:

<?php
ini_set("track_errors", true);
error_reporting (E_ALL);

$a = $php_errmsg;
die;
?>

Notice: Undefined variable: php_errmsg in err.php on line 5

What am I doing wrong?

Thanks,

Jc


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to