= PHP = http://www.php.net/ = syslog = Generate a system log message {{{#!highlight php }}} === Log levels and files in operative systems === ||'''OS''' || '''File'''|| '''Logged levels'''|| ||Slack64 14|| /var/log/messages|| INFO|| ||Slack64 14|| /var/log/syslog|| WARNING ERR CRIT|| ||CentOS 6.4|| /var/log/messages|| INFO WARNING ERR CRIT|| ||Ubuntu 12.04 Precise|| /var/log/syslog|| DEBUG INFO WARNING ERR CRIT|| ||Debian 7.0 Wheezy|| /var/log/syslog ||DEBUG INFO WARNING ERR CRIT|| = sprintf = Return a formatted string {{{#!highlight php }}} = str_replace = Replace all occurrences of the search string with the replacement string {{{#!highlight php $bodytag = str_replace("%body%", "black", ""); ?> }}}