![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
文章平均质量分 80
Clyde_coco
辛苦的php攻城狮,只为明天站着自己建筑的城堡上。为看辉煌而战斗,为了荣誉而奋斗。我是程序员,我为自己而骄傲!
展开
-
Apache和Nginx的优缺点
贵在分享,只是个人建议转载 2016-08-05 19:01:35 · 328 阅读 · 0 评论 -
Redis 与 memcache 对比
redis是什么: Redis is an open source, BSD licensed,advanced key-value store. It is often referred to as a data structure serversince keys can contain strings, hashes, lists, sets and sorted sets. redis转载 2016-08-20 10:09:41 · 249 阅读 · 0 评论 -
excel表格的导入导出
public function excel_put(){ //先做一个文件上传,保存文件 $path=$_FILES['file']; $filePath = "uploads/".$path["name"]; move_uploaded_file($path["tmp_name"],$filePath); //默认用excel2007读取exce转载 2016-08-12 20:51:38 · 314 阅读 · 0 评论 -
伪静态配置开启
1.AllowOverride None 改成 AllowOverride All 2. 去掉注释 LoadModule rewrite_module modules/mod_rewrite.so 3.wamp 控制台打勾转载 2016-08-12 20:53:03 · 251 阅读 · 0 评论 -
php发送邮件email
1.phpmailer,很好用,无论原生还是放到框架下,都没问题 [php] view plain copy header("content-type:text/html;charset=utf-8"); include("class.phpmailer.php"); include("class.smtp.php"); $mail = new PHPMaile转载 2016-08-12 20:54:30 · 353 阅读 · 0 评论 -
sphinx的简单使用及yii中应用
1.说明: Sphinx是一个基于SQL的全文检索引擎,可以结合 MySQL,PostgreSQL做全文搜索,它可以提供比数据库本身更专业的搜索功能,使得应用程序更容易实现专业化的全文检索。Sphinx特别为一些脚本语言设计搜索API接口,如PHP,Python,Perl,Ruby等,同时为MySQL也设计了一个存储引擎插件。 Sphinx 单一索引最大原创 2016-08-12 20:58:30 · 352 阅读 · 0 评论 -
php二维数组转一维数组
$msg = array( array( 'id'=>'45s', 'name'=>'jacks' ), array( 'id'=>'3s4', 'name'=>'masry' ), array( 'id'=>'7s8', 'name'=>'lili' ), )//一般实现方法: //1解: foreach($msg as $转载 2016-08-12 21:35:38 · 437 阅读 · 0 评论