opening a tcp/ip connection using PHP

Discussion in 'PHP' started by dizyn, May 12, 2007.

  1. #1
    well I am working on onlineNIC API

    they say:

    OnlineNIC Registration API uses TCP/IP protocol in the way of Clients-Server.
    Real Server: IP
    Port:200001
    Login Info: test
    Password: test

    Now using the provided info i need to login, is there any function that can be used, i tried to find but no luck, I am not sure but probably i think it can be done using socket.

    thanks
     
    dizyn, May 12, 2007 IP
  2. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes you can use PHP Sockets to do it.. but if possible try to avoid them because they're not all that great.

    Any particular reason you want to use PHP?
     
    CodyRo, May 12, 2007 IP
  3. xooMan

    xooMan Peon

    Messages:
    92
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why not use fsockopen()/fread()/fwrite()?
     
    xooMan, May 18, 2007 IP