Stella981 Stella981
3年前
PHP 判断当前日期是否是法定节假日或者休息日 (原)
//判断日期是不是节假日或者双休日接口@paramtime时间(时间戳或者Ymd都可)publicfunctionget_type_by_date(){$t$_GET'time';if($thisisDateTime($t)){
Wesley13 Wesley13
3年前
PHP面试题2019年阿里巴巴面试题及答案解析
一、单选题(共27题,每题5分)1.Memcache与Redis的比较错误的是?A、Memcache过期后,不删除缓存,会导致下次取数据数据的问题,Redis有专门线程,清除缓存数据;B、Memcache和redis都是只支持单线程;CPU利用方面Memcache和redis部分伯仲C、Memcache只支持keyvalue
Stella981 Stella981
3年前
Node.JS vs PHP CLI Server 简单的HTTP服务器性能测试
环境:64位Ubuntu14.04,i53230MPHP5.4.31withZendOPcacheNode.JS0.10.35Node.JS测试varhttprequire('http');http.createServer(function(req,res){   res.