*/
$ Result = closelog (); // disable system logs.
If ($ result)
{
Echo "system log disabled"; // output result
}
//
Define_syslog_variables (); // clear all system logs
Echo "system log cleared"; // output result
//
Define_syslog_variables (); // clear all system logs
Openlog ("myscriptlog", log_pid | log_perror, log_user); // open the system log
$ Access = date ("y/m/d h: I: s"); // Obtain the date
Syslog (log_warning, "unauthorized client: $ access $ _ server [remote_addr] ($ _ server [http_user_agent])"); // Generate system logs
Closelog (); // Close the log
//
Define_syslog_variables (); // clear all system logs
Openlog ("myscriptlog", log_pid | log_perror, log_user); // open the system log
$ Access = date ("y/m/d h: I: s"); // Obtain the date
Syslog (log_warning, "unauthorized client: $ access $ _ server [remote_addr] ($ _ server [http_user_agent])"); // Generate system logs
Closelog (); // Close the log
/*
This code has no output content
*/
//