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 <sga...@gmail.com> wrote:

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

Reply via email to