note 46852 added to ref.sockets

From: Date: Mon, 25 Oct 2004 21:06:19 +0000
Subject: note 46852 added to ref.sockets
Groups: php.notes 
Request: Send a blank email to php-notes+get-79091@lists.php.net to get a copy of this message
I have a problem: When I try to execute the following line (first line in coding) $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); I get the error socket_create() expects parameter 3 to be long, string given in <b>W:\sock.php</b> on line </b>3</b><br /> Can anyone help me? I had to download a dll and put it in the php.ini file and then put it in an exact path (C:\php4) to make socket_create() work at all and so i'm getting fairly frustrated ---- Manual Page -- http://www.php.net/manual/en/ref.sockets.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46852 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46852&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46852&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46852&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46852&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46852&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46852&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46852&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79091) next »