لمحترفي الويبPHP - معمو — الصفحة ٢٣٧

237 إدارة الأخطاء البرنامج النصي login_track.php (تابع) $message = "ERROR INFORMATION: \n"; $message .= "FILE:\t$file\n"; $message = "LINE:\t$line\n"; $message = "MYSQL: \t$mysqlerr\n"; error_log($message, 1, $admin_email, "FROM: PHP MONITOR <[email protected]>"); 59. 60. 61. 62. 63. 64. 65. break; 66. default: 67. if($number != 0) { 68. failure(); error_log("Error ($number) on line $line in file $file. trim($string) The error was \"" "\"\n", 3, "error_log.txt"); 69. } 70. break; 71. } 73. 74. 75. 76. 77. 78. 79. <? 80. 81. 72. } //end error_handler function failure() { ?> <h3>Sorry,</h3> <p>A problem has occured. The site administators have been notified and the problem should be resolved shortly. <p>Please try again later. die(); // end failure 82. 83. 84. function head() { 85. ?> 86. <html> 87. 88. 89. 90. 91. <head> <title>Login Tracker</title> </head> <body bgcolor="#FFFFFF"> <h1>Login Tracker</h1> 92. <?
ص٢٣٧

نص مستخرج آليًا من الصورة، وقد يقع فيه خطأ.