Perhaps concider moving to fsockopen or stream_socket_client with timeout parameters to solve your issue.fsockopen has no context
Maybe I'm missing something but it returns a resource just like fopen. http://php.net/fsockopen -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php