Results 1 to 3 of 3

Thread: Sockets in PHP

  1. #1
    Join Date
    Feb 2003
    Location
    Albany, New York
    Posts
    2,988

    Sockets in PHP

    Hey all!

    I need to connect to a server and send some information like 0000000000||name

    Can anyone help? Thanks.

  2. #2
    Join Date
    Jan 2004
    Location
    Quebec
    Posts
    164
    $fp = fsockopen("foobar.com",80);

    fputs($fp,"0000000000||name");

    fclose($fp);

    Something like that with a couple of validation if.

    Cheers,

    Matt

  3. #3
    Join Date
    Feb 2003
    Location
    Albany, New York
    Posts
    2,988
    Thanks alot. I was using another function.....socket_open maybe? This is much easier. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •