php中错误日志的目的是什么?我正在运行 dredit 示例 php,并且“执行代码”继续显示。
这是代码:
if (isset($_GET['code'])) {
error_log('doing code');
/**
* Redeemed authorization codes are stored in the session to prevent
* accidental multiple redemption of the same code causing an exception.
* ie, if a user refreshes their browser when a code is in the URL.
* We need to initialize the array of redeemed authorization codes.
*/
if (!isset($_SESSION['redeemed_codes'])) {
$_SESSION['redeemed_codes'] = array();
}
谁可以帮我这个事?谢谢!