PHP.nl

pfsockopen

pfsockopen

Open persistent Internet or Unix domain socket connection

 **pfsockopen** string $hostname int $port int $error_code string $error_message  $timeout

This function behaves exactly as with the difference that the connection is not closed after the script finishes. It is the persistent version of . fsockopen``fsockopen

For parameter information, see the documentation. fsockopen

returns a file pointer which may be used

together with the other file functions (such as , , , , and ),return.falseforfailure. pfsockopen``fgets``fgetss``fwrite``fclose``feof

fsockopen