
php
j87654322
phper codeigniter yii2
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
discuz代码分析之左连接 t1 left join t2 on t1.id=t2.uid where...
<?php //本地头条$page = isset($_GET['page']) ? (int)$_GET['page'] : 1; if($page < 1) { $page = 1; }$limit = 20; // 每页显示条数 $offset = ($page - 1) * $limit;//$total = DB::result_first('SELECT COUNT(*) FRO原创 2016-03-01 14:51:20 · 1052 阅读 · 0 评论 -
discuz X3.2 DB:类数据库操作
http://blog.sina.com.cn/s/blog_0ee72b370102v5i1.html http://www.w3school.com.cn/php/func_mysql_fetch_array.asp原创 2016-03-09 14:19:44 · 1535 阅读 · 0 评论 -
curl详解
基本用法 例一$ch = curl_init("http://www.example.com/"); $fp = fopen("example_homepage.txt", "w"); //设置输出路径,默认为浏览器 curl_setopt($ch, CURLOPT_FILE, $fp); //头文件的信息作为数据流输出 curl_setopt($ch, CURLOPT_HEADER, 0);cu原创 2016-02-26 09:29:06 · 419 阅读 · 0 评论 -
php之逻辑判断
第一篇:session 开始 session_start() 创建和获取 $_SESSION['session_id'] 销毁 unset($_SESSION['views']);session_destory(); 判断 if(isset($_SESSION['session_id']){}else{}原创 2016-03-24 11:20:24 · 949 阅读 · 0 评论 -
php基础之转码
一般的转码$content = iconv("utf-8","gb2312",$content);但是iconv如果出现运行错误,则在目标编码后面加上“//IGNORE”,可以忽略错误继续执行$content = iconv("gb2312","utf-8//IGNORE",$content)另外一个编码转换函数,mb_convert_encoding,参数方向相反string mb_convert原创 2016-02-29 10:17:05 · 344 阅读 · 0 评论 -
php有用链接
php编码问题: http://www.cnblogs.com/xcxc/archive/2012/06/28/2567350.html原创 2016-03-15 00:54:59 · 377 阅读 · 0 评论