Re: Re: PHP list posting confirmation for izoduwa@xxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:

> I think you need to use fread not fwrite.
>
> Regards,
>
> Sherif
>
> On Wed, May 27, 2009 at 8:08 PM, help <izoduwa@xxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux