Hai,
I am new to php socket programming.I have a doubt.
When i use this code,it shows an error"Fatal error: Call to undefined function socket_create() in C:\wamp\www\hai \socket.php on line 1".I am using windows 7 OS and wampserver version 2.0c.Will you please suggest me a way to solve the bug?thanks for your reply in advance.
I am new to php socket programming.I have a doubt.
Code:
<?php if(!($sock = socket_create(AF_INET, SOCK_STREAM, 0)))
{
$errorcode = socket_last_error();
$errormsg = socket_strerror($errorcode);
die("Couldn't create socket: [$errorcode] $errormsg \n");
}
echo "Socket created";
?>
Comment