Networking Functions
DNS and Socket Functions
int checkdnsrr(string host [, string type])
Check DNS records corresponding to a given Internet hostname or IP address
int fsockopen(string hostname, int port [, int
errno [, string errstr [, int timeout]]])
Open Internet or Unix domain socket connection
string gethostbyaddr(string ip_address)
Get the Internet hostname corresponding to a given IP address
string gethostbyname(string hostname)
Get the IP address corresponding to a given Internet hostname
array gethostbynamel(string hostname)
Return a list of IP addresses that a given hostname resolves to
int getmxrr(string hostname, array mxhosts [,
array weight])
Get MX records corresponding to a given Internet hostname
int pfsockopen(string hostname, int port [, int
errno [, string errstr [, int timeout]]])
Open persistent Internet or Unix domain socket connection
int set_socket_blocking(int socket descriptor,
int mode)
Set blocking/non-blocking mode on a socket
FTP Functions
int ftp_cdup(int stream)
Change to the parent directory
int ftp_chdir(int stream, string directory)
Change directories
int ftp_connect(string host [, int port])
Open an FTP stream
int ftp_delete(int stream, string path)
Delete a file
int ftp_fget(int stream, int fp, string remote_file, int mode)
Retrieve a file from the FTP server and write it to an open file
int ftp_fput(int stream, string local_file,
string remote_file, int mode)
Store a file from an open file to the FTP server
int ftp_get(int stream, string local_file,
string ...
Get PHP Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.