PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help
LXVI. Network Functions
No external libraries are needed to build this extension.
There is no installation needed to use these functions; they are part of the PHP core.
The behaviour of these functions is affected by settings in
Table 1. Network Configuration Options
For further details and definition of the PHP_INI_* constants see
Here is a short explanation of the configuration directives.
Whether or not to define the various syslog variables (e.g. $LOG_PID, $LOG_CRON, etc.). Turning it off is a good idea performance-wise. At runtime, you can define these variables by calling
This extension has no resource types defined.
The constants below are always available as part of the PHP core.
Table 2. Options openlog()
if there is an error while sending data to the system logger, write directly to the system console
open the connection to the logger immediately
(default) delay opening the connection until the first message is logged
print log message also to standard error
include PID with each message
Table 3. Facilities openlog()
security/authorization messages (use LOG_AUTHPRIV instead in systems where that constant is defined)
security/authorization messages (private)
clock daemon (cron and at)
other system daemons
LOG_LOCAL0 ... LOG_LOCAL7
reserved for local use, these are not available in Windows
line printer subsystem
USENET news subsystem
messages generated internally by syslogd
generic user-level messages
Table 4. Priorities (in descending order) syslog()
system is unusable
action must be taken immediately
normal, but significant, condition
Table 5. Options dns_get_record()
IPv4 Address Resource
Mail Exchanger Resource
Alias (Canonical Name) Resource
Authoritative Name Server Resource
Host Info Resource (See RFC 1010 for the meaning of these values)
Start of Authority Resource
Any Resource Record. On most systems this returns all resource records, however it should not be counted upon for critical uses. Try DNS_ALL instead.
IPv6 Address Resource
Itteratively query the name server for each available record type.