php socket function
| From: | Tissandié | Date: | Tue, 13 Feb 2001 09:14:09 +0000 |
| Subject: | php socket function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39382@lists.php.net to get a copy of this message | ||
Hi all, need some help about socket functions.
I try tu use socket function.
This is my script:
if (($sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
echo "socket() a echoué - raison : " . strerror($sock) . "\n";
}
And this is the error I always get :
Fatal error: Call to undefined function: socket() in d:\myscript.php on line
175
I'm using PHP with WIN NT. The error is the same with PHP Version 4.0.5-dev
, or PHP Version 4.0.4.
I've installed PHP from binary code, not with re-compiling source.
First question : is socket function installed on php version for windows ?
Second : if yes, where is the problem.....
Thank you for your help,
François Tissandié.
Embrassez ceux que vous aimez
Atos-Infogérance
Tour MANHATTAN
6 Place de l'Iris
92400 Courbevoie Cedex
Tél. : 01.70.92.49.67
Fax. : 01.70.92.48.57
e-mail : francois.tissandie@atosorigin.com