之前看到一个php版本的把数字变为大写人民币的代码,以前没有打开display_errors,后来为了提高代码 […]
Continue readingredis和memcached如何存储php数组
可以以string类型的方式存储。 1、可使用php自带的json_encode和json_decode转换成 […]
Continue readingjson
大家都知道,json_encode通常会把json中的汉字转义成unicode,但是这并不一定是我们想要的。有 […]
Continue readinglinux下为php添加iconv模块的方法
./configure –with-mysql=/backup/mysql –with […]
Continue readingphp函数,伪函数的使用:函数名长,会影响到性能?
函数名长,会影响到性能 对于php函数的使用,有如下一些建议 1. 一个功能可以用内置函数完成,尽量使用它而不 […]
Continue readingphp+js三级菜单联动菜单实现方法
本文实例讲述了php+js三级菜单联动菜单实现方法。分享给大家供大家参考,具体如下: 智能递归菜单-读取数据库
Continue reading23instanceobjects
默认情况下,依赖注入 是用 get 方法 如果想要注入时,每次实例化的是新的对象,则在 节点的 shared […]
Continue readingphp中模拟链表和链表的基本操作示例
模拟链表: name = $name; $this->id = $id; } /** * 遍历链表 */ pu […]
Continue readingphp+mysql实现的简单投票系统实例
本文实例讲述了php+mysql实现的简单投票系统。分享给大家供大家参考,具体如下: 手机系统调查问卷 你现在 […]
Continue readingmeteor用户登录注册密码验证php版本
meteor 对用户密码加密的模块在 accounts-password 下: https://github. […]
Continue reading简单谈谈php中strlen函数
strlen函数说明。 int strlen ( string $string ) 在这篇文章,我们可以知道s […]
Continue readingngnix开发(五)将rtmp直播流转换成hls直播流
1:修改/usr/local/nginx/conf/ngnix.conf,红色字体为添加内容。 #rtmp直播 […]
Continue readingphp正则解析apache日志文件文件
可以把日志按小时滚动,采用php正则分析日志的方式进行解决 $logline =’127.0.0. […]
Continue readingphp计算当前坐标3公里内4个角落的最大最小经纬度实例
本文实例讲述了php计算当前坐标3公里内4个角落的最大最小经纬度的方法。分享给大家供大家参考,具体如下: // […]
Continue readingphp输出gzip压缩
functionob_gzip($content){if(!headers_sent()&& […]
Continue readingphp实现根据时间戳获取周几的方法
本文实例讲述了php实现根据时间戳获取周几的方法。分享给大家供大家参考,具体如下: 获取某个时间戳的周几,以及 […]
Continue readingphp设计模式策略模式
策略模式: 将一组特定的行为和算法封装成类,以适应某些特定的上下文环境; 实际应用举例,假如一个电商网站系统, […]
Continue reading143php接口
php 写app接口 php 接口 特殊的抽象类interface / implements 关键字实现接口 […]
Continue readingphptry
php try-catch 语句为了进一步处理异常,我们需要使用try-catch语句—-包括tr […]
Continue readingffmpeg的php扩展在64位系统下的安装
1:接我上篇博客,是在32位的win7系统下的安装说明。 2:我在我的笔记本上安装了64位的win7,php的 […]
Continue readingphp中的注释
// 这是 php 单行注释/*这是 php 多行 注释 */ 以上就介绍了php 中的注释,包括了方面的内容 […]
Continue readingphp调用java写的webservices提示uncaughtsoapfaultexception:[http]notfound
new client(远程wsdl)的时候wsdl地址是带端口的,一直提示uncaught soapfault […]
Continue readingnginx跳转指定接口
nginx 跳转指定接口 场景: 进行stub测试时,程序访问的不是真正的接口,而是stub接口(提供假数据) […]
Continue readinghttp
http_build_query是用来生成url请求字符串的函数,很简单.不过今天却出现了一点小意外,在本机安 […]
Continue readingphp中cookie和session使用范例
php中利用gd图片验证码生成和保存
php查看文件修改时间
系统文件: 在开发中我们有时需要知道文件的最后访问时间和文件最后修改的时间,介绍一下php提供的确定文件的访问 […]
Continue readingphptrycatch:捕捉异常,抛出异常
php try catch : 捕捉异常,抛出异常: /** * 构造函数:自动加载连接数据库 * @para […]
Continue readingphp实现各种经典算法
原文地址:http://www.360doc.com/content/14/0319/16/15326015_ […]
Continue reading[php函数]–数组函数–array
array_chunk 版本:>= 4.2说明: array_chunk(array $input, int […]
Continue reading