Results 1 to 3 of 3

Thread: winsock

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    winsock

    I was wondering if there was any class for php that is like winsock.

  2. #2
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: winsock

    Yes there is...

    http://www.google.co.uk/search?hl=en...G=Search&meta=

    PHP Sockets are not as easy as winsock however, there are no events such as DataArrival.

    PHP Sockets are best used for a socket client rather than a server (though is possible).

    They have been around for a long time so there are plenty of examples out there if you have a search.

    One other thing to note is if your using a free webhost, they tend to disable the use of PHP Sockets because of people using them for malicious purposes.
    Chris

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: winsock

    The fsockopen function can be used for simple two way TCP connections. It lacks the granularity of PHP sockets but makes up for it in its simplicity.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width