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


-- 
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