- 博客(18)
- 收藏
- 关注
转载 在CentOS 7下安装Coreseek
已经搞定,把处理的过程帖出来给需要的同学做个参考。 1、安装BT面板 yum install -y wget && wget -O install.shhttp://download.bt.cn/install/install.sh&& sh instal...
2019-01-13 14:02:00
209
转载 thinkphp3.2 在apache下路由无效
此时的.htaccess为默认的 <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCo...
2019-01-10 18:03:00
498
转载 PHP生成json和xml类型接口数据格式
/** * 生成接口数据格式 */class Response{ /** * [show 按综合方式输出数据] * @param [int] $code [状态码] * @param [string] $message [提示信息] * ...
2018-10-11 21:41:00
123
转载 PHP : MySQLi【面向过程】操作数据库【 连接、建库、建表、增、删、改、查、关闭】...
<?php/** *数据库操作关键函数 *mysql_connect:连接数据 *mysql_error:最后一次sql动作错误信息 *mysqli_query:执行sql语句,增删该查 *mysql_select_db:选择数据库 *mysql_fetch_...
2018-10-02 15:16:00
200
转载 PHP : mysqli【面向对象】操作数据库【连接、增、删、改、查】
<?php/** * Created by PhpStorm. * User: Flying * Date: 2016/9/27 * Time: 19:10 */function println($msg){ echo "<br>...
2018-10-02 15:13:00
156
转载 php缓存类文件完整代码如下:
<?php/** 缓存类 cache*/class cache {//缓存目录var $cacheRoot = "./cache/";//缓存更新时间秒数,0为不缓存var $cacheLimitTime = 0;//缓存文件名var $cache...
2018-09-20 16:39:00
137
转载 微信 关注/取消关注事件
<?php/** * wechat php test *///确定下你的token那个地方和微信公众平台的一致。然后URL那个路径是你真正设置验证的这个路径。然后验签那个地方是没有设置才去验签的,!isset()希望能帮到你。望采纳 //define your token...
2018-05-01 16:28:00
663
转载 微信小程序授权获取用户详细信息openid的实例详解
这篇文章主要介绍了微信小程序授权获取用户详细信息openid的实例详解的相关资料,希望通过本文能帮助到大家,需要的朋友可以参考下 小程序获取用户的头像昵称openid之类 第一种使用wx.getUserInfo直接获取微信头像,昵称 [js] view plain copy ...
2018-03-14 14:58:00
193
转载 php经常用到的数据过滤的方法
<?php/** * global.func.php 公共函数库 *//** * 返回经addslashes处理过的字符串或数组 * @param $string 需要处理的字符串或数组 * @return mixed */function new_addslash...
2018-01-12 14:52:00
312
转载 PHP随机生成姓名的方法介绍
这篇文章主要介绍了PHP基于自定义类随机生成姓名的方法,结合实例形式分析了php基于数组与字符串的随机数操作生成姓名的相关实现技巧,需要的朋友可以参考下 本文实例讲述了PHP基于自定义类随机生成姓名的方法。分享给大家供大家参考,具体如下: 自定义类rndChinaName.class...
2017-10-18 08:22:00
623
转载 PHP抓取百度搜索结果页面的【相关搜索词】并存储
index.php------------<form action="index.php" method="post"><input name="q" type="text" /><input type="submit" value="Get Keywor...
2017-10-11 20:35:00
808
转载 php通过淘宝API查询IP地址归属等信息
Class TaobaoIPQuery2{ private static $_requestURL = 'http://ip.taobao.com/service/getIpInfo.php'; public static function getIPInfo($ip){ $l...
2017-10-01 14:29:00
138
转载 PHP合并多个JS和CSS文件,减少HTTP请求
HTML: <link rel="stylesheet" type="text/css" href="cssmin.php?get=base,style1,style2,global&path=css/&v=20131023" /><script type...
2017-09-16 10:16:00
221
转载 比较实用的一个PHP加密解密函数
使用方法 //加密$psa=authcode("www.lvtao.net");echo $psa.'<br/>';//解密echo authcode($psa,'D'); 过期时间 //30秒后过期$psa=authcode("www.lvtao.net",'E...
2017-09-16 10:04:00
126
转载 PHP类-人民币金额转大写
<?php//人民币金额转大写程序PHP版class Ext_Num2Cny{ static $basical = array(0=>"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"); static $advanced=array...
2017-09-16 10:00:00
166
转载 PHP实现阳历(新历)与阴历(农历)互相转换
使用方法: <?phpheader("Content-Type:text/html;charset=utf-8");require "lunar.php";$lunar=new Lunar();$month=$lunar--->convertSolarToLunar(20...
2017-09-12 09:19:00
435
转载 PHP读取网卡MAC地址
class GetMacAddr{ var $return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type){ switch ( st...
2017-09-05 21:05:00
205
转载 汉字转Unicode编码,Unicode编码转汉字
<?php /** * 汉字转Unicode编码 * @param string $str 原始汉字的字符串 * @param string $encoding 原始汉字的编码 * @param boot $ishex 是否为十六进制表示(支持十六进制和十进制) * @pa...
2017-09-05 16:17:00
599
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人