out1.println("我是007");
out1.flush();pass-by-reference 在php.inc里面能找到对应的配置。
out1.flush();pass-by-reference 在php.inc里面能找到对应的配置。
解决方案 »
- 请问各位高手用PHP+MySQL开发这系统行嘛?
- !!在线等待 php刚接触,请大家帮个忙
- 求助,腾讯开放平台创建网站应用
- 谁使用过com组件获取网页JS加载出来的内容
- 在一个有写权限的文件夹里mkdir()为什么不正常执行?
- 请问关于 ioncube-encoded 的问题
- Notice: Undefined variable: normal in d:\usr\www\html\物流管理系统\index.php on line 24
- 虽然相似的帖子,但还是不懂。php怎样在下拉菜单动态显示mysql数据库内容
- PHP+mysql的事物处理问题
- 使用正则表达式\s来匹配空格,总是会少匹配一个空格
- 请教 The filename *.xls is not readable 如果解决?
- php连接mysql数据库出现问题 找不到指定的程序
error_reporting(E_ALL);echo "<h2>TCP/IP Connection</h2>\n";/* Get the port for the WWW service. */
$service_port = getservbyname('www', 'tcp');/* Get the IP address for the target host. */
$address = gethostbyname('www.example.com');/* Create a TCP/IP socket. */
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if ($socket === false) {
echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n";
} else {
echo "OK.\n";
}echo "Attempting to connect to '$address' on port '$service_port'...";
$result = socket_connect($socket, $address, $service_port);
if ($result === false) {
echo "socket_connect() failed.\nReason: ($result) " . socket_strerror(socket_last_error($socket)) . "\n";
} else {
echo "OK.\n";
}$in = "HEAD / HTTP/1.1\r\n";
$in .= "Host: www.example.com\r\n";
$in .= "Connection: Close\r\n\r\n";
$out = '';echo "Sending HTTP HEAD request...";
socket_write($socket, $in, strlen($in));
echo "OK.\n";echo "Reading response:\n\n";
while ($out = socket_read($socket, 2048)) {
echo $out;
}echo "Closing socket...";
socket_close($socket);
echo "OK.\n\n";
?>