Re: [PHP] is there socket.so file?
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 [EMAIL PROTECTED] 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
Re: [PHP] is there socket.so file?
On Mon, February 5, 2007 10:30 am, Craige Leeder wrote: On Linux, it is necessary to compile php with the --enable-sockets flag to be able to use php's socket functions. Unless it's PHP 4, and it's already in, or PHP 5 and it's in PECL or... It's just not that simple. Sorry. -- 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
Re: [PHP] is there socket.so file?
On 2/5/07, Richard Lynch [EMAIL PROTECTED] wrote: Unless it's PHP 4, and it's already in, or PHP 5 and it's in PECL or... It's just not that simple. Sorry. Ah, I didn't realize they stopped bundling it with PHP as of PHP 5.3.0. That sucks. It used to be that simple. - Craige -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is there socket.so file?
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] is there socket.so file?
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? -- regards, Yeni Setiawan
Re: [PHP] is there socket.so file?
HI Yeni I had similar problems i recommmend using the following fsockopen() instead open_socket() it wprks fine on both On 2/3/7, Yeni Setiawan [EMAIL PROTECTED] 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? -- regards, Yeni Setiawan -- Have A plesant Day Chetan. D. Rane Location: Pune , India Contact: +91-9890792762 otherID: [EMAIL PROTECTED] [EMAIL PROTECTED]