pfsockopen()
pfsockopen - Open persistent Internet or Unix domain socket connection
Syntax
resource pfsockopen (
string $hostname,
int $port,
int &$errno,
string &$errstr,
float $timeout)
Arguments
- hostname - Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.
- port - Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.
- errno - Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.
- errstr - Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.
- timeout - Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.
Description
This function behaves exactly as fsockopen() with the difference that the connection is not closed after the script finishes. It is the persistent version of fsockopen().
Version
PHP 4, 5
Return value