[PHP] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Devon Weller
Has anyone successfully gotten socket functions to work with FreeBSD? More specifically, Mac OS X? I always get the following error: Can't bind to port 12345, exiting. The script works fine on Linux machines. Is there a patch in the works for FreeBSD? If so, I would be very happy. -- Devon

Re: [PHP] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Mukul Sabharwal
Hi, A bind error means that the port is being used by another application, incase that's incorrect you can assure yourself by doing this : socket_setopt(listener, SOL_SOCKET, SO_REUSEADDR, 1); This function is undocumented (yet) and would require you to download the latest version from CVS.

Re: [PHP] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Mukul Sabharwal
Oops, socket_setopt($listener, SOL_SOCKET, SO_REUSEADDR, 1); = * Know more about me: http://www.geocities.com/mimodit * __ Do You Yahoo!? Listen to your Yahoo! Mail messages

Re: [PHP] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Brad Hubbard
On Wed, 3 Oct 2001 02:02, Devon Weller wrote: Has anyone successfully gotten socket functions to work with FreeBSD? More specifically, Mac OS X? I always get the following error: Can't bind to port 12345, exiting. The script works fine on Linux machines. Is there a patch in the works for