English 中文(简体)
A. 编程错误
原标题:Socket programming error
  • 时间:2010-09-05 02:53:14
  •  标签:
  • php

当我执行我的袖珍计划时,我正遇到一个错误:

致命错误: 呼吁在C:wampwwwsockertsockert.php第11行中确定职能目录。

这一错误是什么?


法典:

// set some variables
$host = "192.168.1.99";
$port = 1234;
// don t timeout!
set_time_limit(0);
// create socket
$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket
");

我正在使用php5.3.0。

问题回答

<代码>socket分机不适用。

页: 1

在文件php.ini文档中,找到了php_sockets.dll的行文,删除了主要半殖民地(;)。

缩略语 但是,还有一种更好的替代途径:<代码>stream的延伸也为袖珍提供支持,无论贵国的购买力平价和平台如何,都提供这种支持,而且更容易使用。

I ve written a blog post interpret Petro Sockets here:

我希望这一帮助。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签