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 <[EMAIL PROTECTED]>
> To: sagar <[EMAIL PROTECTED]>
> Cc: php <[EMAIL PROTECTED]>
> 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
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to