mysql 类link = @new mysqli('localhost', 'root', 'chenshuo90909', 'temp'); if(mysqli_connect_errno()) { echo "MySQL connect error!"; e...
分类:
数据库 时间:
2015-08-17 19:13:42
阅读次数:
179
struct hostent *gethostbyname(const char *name); 返回:若成功则为非空字符串,若出错则为NULL且设置h_errno 注意:此函数的局限只能返回IPV4地址,所以建议使用getaddrinfo()函数 本函数返回的非空指针结构体...
分类:
其他好文 时间:
2015-08-17 15:48:31
阅读次数:
111
安装GEM包的时候通常会由于GFW的原因导致无法正常安装。报如下类似的错误:Gem::RemoteFetcher::FetchError:Errno::ECONNRESET:Connectionresetbypeer-SSL_connect(https://rubygems.org/gems/curses-1.0.1.gem)
Anerroroccurredwhileinstallingcurses(1.0.1),andBundlercannot..
分类:
其他好文 时间:
2015-08-16 16:52:35
阅读次数:
159
三、文件系统操作 os模块的功能主要包括文件系统部分和进程部分,这里介绍其中与文件系统相关的部分。 当请求操作系统失败时,os模块返回内置异常exceptions.OSError 的实例,可以通过 os.error 访问这个类型,OSError的实例有三种属性:errno:操作系统错误的错误代码.....
分类:
编程语言 时间:
2015-08-14 18:29:08
阅读次数:
138
Traceback (most recent call last): File "F:\adt-bundle-windows-x86_64-20140702\eclipse\workspace1\XueChe\src\xueche2\0\xueche.py", line 19, in dr...
分类:
编程语言 时间:
2015-08-13 17:12:32
阅读次数:
1926
mysqldump导出备份后用mysq还原报错ERROR1005(HY000)atline1001:Can‘tcreatetable‘‘(errno:121)删除mysql的ibdata1、ib_logfile0、ib_logfile1再试试,记得备份哦。
分类:
数据库 时间:
2015-08-11 19:20:03
阅读次数:
172
出现问题:C:\Users\len>gem install railsERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed b...
分类:
其他好文 时间:
2015-08-06 10:54:38
阅读次数:
423
Connection to neutron failed: [Errno 111] Connection refused上面ping的是external network ip的第一个ip,这个ip会作为外部网络的网关,所以在创建好 neutron网络后这个网关ip是可以ping通的;for i in...
分类:
其他好文 时间:
2015-08-04 18:52:09
阅读次数:
223
'error', 'error' => "$errstr ($errno)" ); } // close the socket connection: fclose ( $fp ); // split the result header from the conten...
分类:
Web程序 时间:
2015-08-04 15:36:22
阅读次数:
144
一、Client.php文件通过fsockopen,将请求转发到Server.php<?php
echo‘start‘.time(),PHP_EOL;
$fsp=fsockopen(‘suiwnet.my‘,‘80‘,$errno,$errstr,30);
//这里指定要请求的地址/CliTest/Server.php
$header="GET/CliTest/Server.phpHTTP/1.1\r\n";
$header.="Host:suiwnet.my..
分类:
Web程序 时间:
2015-08-03 14:57:23
阅读次数:
167