Category Archives: PHP服务器脚本

mac os下安装nginx,php-fpm

换了mac后,稍微有点不熟悉,mac自带了php和apache,不过php是的G … Continue reading

Posted in PHP服务器脚本 | Leave a comment

fibonacci数列递归实现

[php] fibonacciSequence($n-1)+$this-&amp … Continue reading

Posted in PHP服务器脚本 | Leave a comment

php 5.5.12的redis扩展dll文件 memcache扩展

在windows下面需要php redis的dll文件支持,需要按照版本来安装, … Continue reading

Posted in PHP服务器脚本, 架构运维 | Leave a comment

PHP内核探索:从SAPI接口开始

SAPI:Server Application Programming Inte … Continue reading

Posted in PHP服务器脚本, 架构运维 | Leave a comment

PHP7和HHVM的性能之争

PHP语言的排名变化 根据“TIOBE编程语言排行榜”(榜单虽然统计方式有局限, … Continue reading

Posted in PHP服务器脚本, 架构运维 | 1 Comment

centos yum安装mysql5.6 php5.6

centos下面的源下的版本默认太低了,php为5.3,mysql更是低到内裤5 … Continue reading

Posted in PHP服务器脚本 | Leave a comment

php的优化加速插件opcache,替代apc

从php5.5起,php源码树开始集成一个新的优化工具Zend Optimize … Continue reading

Posted in PHP服务器脚本 | Tagged , , | Leave a comment

nginx下 minify的使用

在nginx下面使用minify和apache区别不大,但是重写规则需要改一下[ … Continue reading

Posted in PHP服务器脚本, 架构运维 | Leave a comment

php多线程

大家都知道在java中有多线程,其实php也可以实现类似的功能,只是没有java … Continue reading

Posted in PHP服务器脚本 | Tagged , | Leave a comment

PHP 使用二叉树的先序和中序遍历结果构造二叉树

[php] <?php #树节点 class Node { public … Continue reading

Posted in PHP服务器脚本 | Tagged , | Leave a comment

PHP 二叉树的小操作

[php]<?php // 树节点类 class binaryTreeNo … Continue reading

Posted in PHP服务器脚本 | Tagged , | Leave a comment

json_encode正确识别中文解决方法

相信大家都很熟悉json_encode这个方法,这是用来将数组转换成一个json … Continue reading

Posted in PHP服务器脚本 | Tagged , | Leave a comment

53个要点提高PHP编程效率

用单引号代替双引号来包含字符串,这样做会更快一些。因为PHP会在双引号包围的字符 … Continue reading

Posted in PHP服务器脚本 | Tagged , , | Leave a comment

通过fsockopen函数实现post表单

如何通过PHP实现POST方式提交表单?下面是实现此功能的函数,主要采用了fso … Continue reading

Posted in PHP服务器脚本 | Tagged | Leave a comment

php 取得 root 身份執行程式

有一個指令 sudo 可以讓一般使用者以 root 身份執行某些指令,這些權限全 … Continue reading

Posted in PHP服务器脚本 | Tagged , , | Leave a comment

php simplexml 修改xml文件和添加新节点

很多同学在相信都使用过xml文件,这是个平台无关性的通用的数据交换格式,例如在使 … Continue reading

Posted in PHP服务器脚本 | Tagged , , | Leave a comment

linux定时执行php文件

在linux下面我们对于定时执行shell文件并不陌生,我们在这里执行的都是sh … Continue reading

Posted in PHP服务器脚本 | Tagged , , | Leave a comment

网页文件乱码的分析与解决方案

对于web开发的同学来说,对于编码我想自是不陌生,而且呢,大部分同学对于UTF- … Continue reading

Posted in PHP服务器脚本 | Tagged , , , | Leave a comment

wordpress为文章页面、分类页面、首页等添加keywords和description

相信大家都用过大名鼎鼎(当然很多人都觉得wp就是个垃圾,不过wp确实有很多不合理 … Continue reading

Posted in PHP服务器脚本, 架构运维 | Tagged , , | Leave a comment

php检测手机浏览器

web时代发展到今天已经衍生出很多领域,最重要的就是移动web,目前手机app的 … Continue reading

Posted in PHP服务器脚本 | Tagged , , | Leave a comment

php soap示例

今天简单讲一个使用广发的webservice,在php中对这个服务支持的很完备, … Continue reading

Posted in PHP服务器脚本, Python程序设计 | Tagged , , , | Leave a comment

php401验证

很多人可能很少使用php的验证,很多使用我们可以这样来使用这个验证:[php] … Continue reading

Posted in PHP服务器脚本 | Tagged , | Leave a comment