"; return; } $handle = fopen(LOG_FILE, "a"); if (!$handle) { echo "Unable to open file.
"; return; } if (!fwrite($handle, $string . "\n")) { echo "Unable to write to file.
"; } fclose($handle); } function log_error($string) { log_print(PREFIX_ERROR . $string); } ?>