Re: socket error
| From: | Sterling Hughes | Date: | Fri, 07 Sep 2001 20:24:06 +0000 |
| Subject: | Re: socket error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66469@lists.php.net to get a copy of this message | ||
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