note 27262 rejected from function.connection-aborted by didou

From: Date: Tue, 19 Aug 2003 14:17:38 +0000
Subject: note 27262 rejected from function.connection-aborted by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54681@lists.php.net to get a copy of this message
Note Submitter: ron at xit dot nl ---- for some (to me, unknown) reason, none of the connection handling functions seem to work (PHP 4.1.2 on Apache 1.3.26). i don't like this solution at all for getting around this problem, but it's better than nothing: function alt_connection_aborted() { $ip = str_replace(".", "\\.", getenv("REMOTE_ADDR")); $port = getenv("REMOTE_PORT"); return (preg_match("/^tcp +[0-9]+ +[0-9]+ +[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:[0-9]+ +$ip:$port +.*?$/m", netstat -n --tcp))?false:true; }

« previous php.notes (#54681) next »