I'm try to connect using sockets to access googles api's. I understand that errno 0 refers to a pre-connection error, most likely a problem opening the socket, what I don't get is what exactly do about this. Is it an os issue? I'm running php 4.1.2 on redhat 7.2.

The code:
$sock = fsockopen("api.google.com", '80'. &$err, &$errno, 5);

Cheers.

    Originally posted by cole
    I'm try to connect using sockets to access googles api's. I understand that errno 0 refers to a pre-connection error, most likely a problem opening the socket, what I don't get is what exactly do about this. Is it an os issue? I'm running php 4.1.2 on redhat 7.2.

    The code:
    $sock = fsockopen("api.google.com", '80'. &$err, &$errno, 5);

    Cheers.

    Generally only the superuser may open sockets. You'll need some kind of suexec() calls or something, I expect.

    #include disclaimer.h

      Write a Reply...