Re: socket error
| From: | Sterling Hughes | Date: | Fri, 07 Sep 2001 20:41:04 +0000 |
| Subject: | Re: socket error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66472@lists.php.net to get a copy of this message | ||
On Sat, 8 Sep 2001, sagar wrote:
> thanX sterling,
>
> i've changed it to socket_open() but the problem
> still exists.
>
Sorry, meant socket_create() -- for a list of the new names, open up
php4/ext/sockets/sockets.c and take a look at the function entry.
-Sterling
> /sagar
>
> ----- Original Message -----
> From: Sterling Hughes <sterling@designmultimedia.com>
> To: sagar <sagarphp@yahoo.com>
> Cc: php <php-general@lists.php.net>
> Sent: Saturday, September 08, 2001 1:54 AM
> Subject: Re: [PHP] socket error
>
>
> > On Sat, 8 Sep 2001, sagar wrote:
> >
> > > line10 -> if (($sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
> > > echo "socket() failed: reason: " . strerror($sock) .
> "\n";
> > > }
> > >
> > > i'm getting an error saying
> > > Fatal error: Call to undefined function: socket() in c:\program
> files\apache group\apache\htdocs\test\sock.php on line 10
> > >
> > >
> > > can any one help
> > >
> >
> > The socket functions have been renamed as of php4.0.7
> >
> > Use socket_open() instead...
> >
> > -Sterling
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>