以前用PHP验证邮箱、URL、IP是否合法都是通过自己写正则来实现,但是有时候脑子发昏,可能会写出一个不是完全正确的正则,导致验证出错,今天发现原来PHP本身自带了验证邮箱、URL、IP是否合法的函数。 主要使用的是filter_var函数。 语法 filter_var(variable, filt ...
分类:
Web程序 时间:
2016-12-09 19:31:37
阅读次数:
239
文章为逛微信的公众号看到的,由于之前一段时间一直做性能测试,公司也使用的是MySQL数据库,项目中MySQL的优化很多方面和这篇文章类似,就推荐给大家。。。 文章原地址:http://mp.weixin.qq.com/s/oRXJRz_Y5drmIrcbxSKOcw 1. 选择合适的存储引擎: In ...
分类:
数据库 时间:
2016-12-09 15:52:05
阅读次数:
298
1、dir 2、 set (不带参数) 查看环境变量。 SET [variable=[string]] variable 指定环境变量名。 string 指定要指派给变量的一系列字符串。 3、 ...
分类:
其他好文 时间:
2016-12-09 12:11:21
阅读次数:
132
首先本地办公环境为windows使用的是navicat连接的mysqlnavicat连接mysql时查询结果正常查看编码方式:mysql>showvariableslike‘%character%‘;+--------------------------+--------------------------------+
|Variable_name|Value|
+--------------------------+----------..
分类:
数据库 时间:
2016-12-08 12:04:48
阅读次数:
201
建立类: using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using Microsoft.AspNetCore.Http; namespace Iyibank.C ...
分类:
Web程序 时间:
2016-12-08 03:13:55
阅读次数:
210
1.const声明一个只读常量,一旦声明,常量的值就不能改变 1 const PI=3.1415; 2 console.log(PI);//3.1415 3 4 PI=3;//Uncaught TypeError: Assignment to constant variable. 2.const一旦 ...
分类:
其他好文 时间:
2016-12-07 22:53:31
阅读次数:
194
1.const声明一个只读常量,一旦声明,常量的值就不能改变 1 const PI=3.1415; 2 console.log(PI);//3.1415 3 4 PI=3;//Uncaught TypeError: Assignment to constant variable. 2.const一旦 ...
分类:
其他好文 时间:
2016-12-07 22:44:00
阅读次数:
193
Usage of ref keyword in C# When we pass a value type variable as a parameter, then it passes its value as a parameter i.e. making a copy of the data. ...
Computer Systems A Programmer's Perspective Second Edition We have seen that C does not perform any bounds checking for array references, and that loc ...
分类:
其他好文 时间:
2016-12-06 14:28:46
阅读次数:
131
After running celery in my machine, I got this: Solution 1: Solution 2: ...
分类:
其他好文 时间:
2016-12-06 13:53:30
阅读次数:
192