上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 40 下一页

js getyear和getfullyear

摘要: getyear()函数如果今年是2015年会得到115,getfullyear()会得到完整的年份。 阅读全文
posted @ 2015-07-16 17:54 liuwenbohhh 阅读(199) 评论(0) 推荐(0)

选出随机的不重复的二十个数

摘要: 阅读全文
posted @ 2015-07-16 14:50 liuwenbohhh 阅读(177) 评论(0) 推荐(0)

linux更换阿里云的源的shell脚本

摘要: #!/bin/bash##########################################Function: update source#Usage: bash update_source.sh#Author: Customer service depar... 阅读全文
posted @ 2015-07-16 10:28 liuwenbohhh 阅读(754) 评论(0) 推荐(0)

linux的shell函数参数

摘要: 在Shell中,调用函数时可以向其传递参数。在函数体内部,通过 $n 的形式来获取参数的值,例如,$1表示第一个参数,$2表示第二个参数...带参数的函数示例:#!/bin/bashfunWithParam(){ echo "The value of the first parameter i... 阅读全文
posted @ 2015-07-16 10:26 liuwenbohhh 阅读(18293) 评论(0) 推荐(1)

使用filezella服务器配置ftp

摘要: 使用FileZilla配置FTP站点,可参考以下步骤:1、打开Filezilla Server服务端: 点击【Edit】->【Users】,或者点击如下图标新增用户。2、添加FTP帐号后,设置该FTP帐号对应的文件目录。3、完成上述设置后,本地客户端则可以进行FTP连接。 阅读全文
posted @ 2015-07-15 18:24 liuwenbohhh 阅读(458) 评论(0) 推荐(0)

preg_match_all匹配网络上文件

摘要: 阅读全文
posted @ 2015-07-15 18:20 liuwenbohhh 阅读(132) 评论(0) 推荐(0)

curl强制下载文件

摘要: 阅读全文
posted @ 2015-07-15 18:19 liuwenbohhh 阅读(252) 评论(0) 推荐(0)

php的self和this

摘要: s2 = $code; //这里已经使用了this指针 }}$ss=new ss(new s1(false));$ss::app()->s2=true;var_dump($ss::$code->s2);?>经过测试,self面向当前类,可以操作static变量,$this面向当前对象,操作常量... 阅读全文
posted @ 2015-07-13 17:43 liuwenbohhh 阅读(123) 评论(0) 推荐(0)

preg_replace数组的用法

摘要: $string = 'The quick brown fox jumped over the lazy dog.';$patterns = array();$patterns[2] = '/quick/';$patterns[1] = '/brown/';$patterns[0] = '/fox/'... 阅读全文
posted @ 2015-07-13 14:37 liuwenbohhh 阅读(687) 评论(0) 推荐(0)

mysql出错代码

摘要: 1005:创建表失败1006:创建数据库失败1007:数据库已存在,创建数据库失败1008:数据库不存在,删除数据库失败1009:不能删除数据库文件导致删除数据库失败1010:不能删除数据目录导致删除数据库失败1011:删除数据库文件失败1012:不能读取系统表中的记录1020:记录已被其他用户修改... 阅读全文
posted @ 2015-07-13 12:18 liuwenbohhh 阅读(137) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 40 下一页