Yeni, On Linux, it is necessary to compile php with the --enable-sockets flag to be able to use php's socket functions. Hope this helps, - Craige On 2/5/07, Richard Lynch <ceo@xxxxxxxxx> wrote:
On Sat, February 3, 2007 10:18 am, Yeni Setiawan wrote: > Hi there, > I'm currently writing an IRC bot using php (CLI) and get a little > problem. > > For windows version, I need to enable socket extension (socket.dll) > and > my bot will be able to connect to an IRC server. > > But in linux version, it's unable to connect. So I wonder if there's a > " > socket.so" or something else > to activate socket extension. > > And the question is, do I need socket extension in Linux? The answer is "Yes" but the rest of the answer depends on your version of PHP more than anything else... http://php.net/sockets lays that out rather nicely, actually. Did you do *any* research at all on this?... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php