摘要: arguments:是一个对应于传递给函数的参数的类数组对象。 arguments.length:获取参数的长度。 阅读全文
posted @ 2017-11-27 18:02 Func~ 阅读(317) 评论(0) 推荐(0) 编辑
摘要: MySQL 字符串截取函数:left(), right(), substring(), substring_index()。还有 mid(), substr()。其中,mid(), substr() 等价于 substring() 函数,substring() 的功能非常强大和灵活。 1. 字符串截 阅读全文
posted @ 2017-10-24 16:23 Func~ 阅读(121269) 评论(0) 推荐(4) 编辑
摘要: https://lnmp.org/install.html nginx中虚拟机中的配置 location ~ .*\.(php|php5)?$ { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index inde 阅读全文
posted @ 2017-10-13 17:10 Func~ 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 安装 系统需求: 需要2 GB硬盘剩余空间 128M以上内存,OpenVZ的建议192MB以上(小内存请勿使用64位系统) Linux下区分大小写,输入命令时请注意! 安装步骤: 1、使用putty或类似的SSH工具登陆;登陆后运行:screen -S lnmp如果提示screen命令不存在可以执行 阅读全文
posted @ 2017-10-13 11:32 Func~ 阅读(471) 评论(0) 推荐(0) 编辑
摘要: CentOS网卡配置源文件如下:DEVICE=eth0HWADDR=00:0C:29:A8:67:46TYPE=EthernetUUID=4103d7a8-d073-4e93-ac68-e6f8496f35f0ONBOOT=noNM_CONTROLLED=yesBOOTPROTO=dhcp1.Cen 阅读全文
posted @ 2017-10-12 10:39 Func~ 阅读(13657) 评论(0) 推荐(0) 编辑
摘要: 1 for($i=ord('a');$i<=ord('z');$i++){ 2 $b = chr($i); 3 $arr[] = $b; 4 } 5 $a = $arr; 6 var_dump($a); 阅读全文
posted @ 2017-09-20 19:32 Func~ 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 首先先介绍2个php内置函数 ord(string):函数返回字符串的首个字符的 ASCII 值。//string:必需。要从中获得 ASCII 值的字符串。 chr(ascll): 函数从指定的 ASCII 值返回字符。//必需。ASCII 值。 第一个函数返回的是以整数的ASCLL值。第二个函数 阅读全文
posted @ 2017-09-20 13:58 Func~ 阅读(789) 评论(0) 推荐(0) 编辑
摘要: 先在apache中的 httpd.conf中将 Allow from 127.0.0.1 修改为Allow from all 如果你的是Allow from all的话就不需要改 然后再将 DocumentRoot "D:\web\phpstudy\WWW" 这的文件路径换成PHP项目的路径。修改完 阅读全文
posted @ 2017-08-29 13:46 Func~ 阅读(7786) 评论(0) 推荐(0) 编辑
摘要: 标红部分的() 括号。and 比 or具有更高的优先级,所以不加括号他就从左到右开始判断 阅读全文
posted @ 2017-08-11 15:54 Func~ 阅读(6025) 评论(0) 推荐(0) 编辑
摘要: 第一种 not like 方法 select * from table where `zongbu` not like '%北京%' and `zongbu` not like '%上海%' and `zongbu` not like '%深圳%' and `zongbu` not like '天津 阅读全文
posted @ 2017-08-07 17:47 Func~ 阅读(5029) 评论(0) 推荐(0) 编辑