Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

The facility argument sets a default value for the source of the error—that is, from
which part of the system the report comes. The argument is ignored under Windows.
Table 8.11 lists the facilities available.


See syslog for an example of use.


Table 8.11. openlog Facilities
Constant Facility

LOG_AUTH (^) Authorization
LOG_AUTHPRIV (^) Authorization Privileges
LOG_CRON (^) Cron
LOG_DAEMON (^) Daemon
LOG_KERN (^) Kernal
LOG_LPR (^) Printer
LOG_MAIL (^) Mail
LOG_NEWS (^) News
LOG_SYSLOG (^) System Log
LOG_USER (^) User
LOG_UUCP (^) UNIX to UNIX protocol
phpcredits(integer flags)
The phpcredits function prints information about the major contributors to the PHP
project. If the optional flags argument is left out, all information will be provided.
Otherwise, you may combine the flags listed in Table 8.12 to choose a specific set of
information. The PHP_FULL_PAGE constant will cause the credits to be surrounded with
minimal tags for defining an HTML page.
Figure 8-9. phpcredits.

Free download pdf