最新文章 更多»

Memcache缓存的使用

先说一下之前的需求;由于之前是一直用的直接读取数据库;每到周六周日服务器就会挂掉,英文访问量很大;对sql各种优化效果也不是很好;后来就采用了Memcache缓存,缓存之存储用户的

redis模拟抢购

在thinkphp5.0框架使用redis,redis支持五种数据类型 string hash list set zset<?php namespaceapp\index\

redis

phpmailer发送excell

使用phpmailer结合PHPexcell完成定时发送邮件和excell的功能;ini_set("magic_quotes_runtime",0); req

百度API-根据地址获取经纬度

根据地址获取经纬度 //根据地址获取经纬度接口 publicfunctionaddresstolatlag($address){ $url='http://ap

php pdo的使用

php pdo的使用防止sql注入 $dbms='mysql';//数据库类型 $host='localhost';//数据库主机名 $d

mysqlpdo