Re: Re: PHP list posting confirmation for izoduwa@gmail.com

From: Date: Wed, 27 May 2009 08:19:00 +0000
Subject: Re: Re: PHP list posting confirmation for izoduwa@gmail.com
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-293195@lists.php.net to get a copy of this message
I need to establish connection to the server first, send in my login packet and before reading the server response. The same error when I also use the below function: $fp = stream_socket_client("$con:$ip:$port", $errno, $errstr, $timeout); if (!$fp) { echo "$errstr ($errno)"; //"$errstr ($errno)<br />\n"; } On Wed, May 27, 2009 at 9:12 AM, Sherif Gayed <sgayed@gmail.com> wrote: > I think you need to use fread not fwrite. > > Regards, > > Sherif > > On Wed, May 27, 2009 at 8:08 PM, help <izoduwa@gmail.com> wrote: > > Hi, > > > > I am trying to connect to specific server using but I have the below > error > > messagr. Whta could be the problem? > > > > $fp = fsockopen($ip,$port, $errno, $errstr, $timeout); > > fwrite($fp,$LRG); > > > > //return "$errstr ($errno)"; > > > > if (!$fp) { > > echo "$errstr ($errno)"; //"$errstr ($errno)<br />\n"; > > } > > > > *A connection attempt failed because the connected party did not properly > > respond after a period of time, or established connection failed because > > connected host has failed to respond. (10060)* > > > -- www.bemycandy.com

« previous php.general (#293195) next »