-
PHPExcel导出excel入门实例教程
[PHP教程] 2022-02-23 15:27:12 174人阅读
PHPExcel是一款非常强大的操作excel的插件了,我们可以使用PHPExcel插件来读写excel了,下面就一起来看看吧. PHPExcel是一个强大的excel导出/导入插件,它甚至还可以导出pdf等,是个非常好用的php插件,php学习必不可少,...[详细]
-
PHP聊天室 WebSocket技术实战
[PHP教程] 2022-02-23 15:26:50 53人阅读
PHP聊天室以前做时都是通过ajax与PHP来实现的,今天我们就一起来看一个PHP聊天室WebSocket技术实战例子. 最近在研究聊天室技术,因为我是做php的,肯定想要从php入手,偶的一个聊天室,下载地址: http://pan.baidu.com/s/...[详细]
-
php模拟reffer破解防止盗用图片
[PHP教程] 2022-02-23 15:26:35 80人阅读
当我们需要调用其他网站图片的时候,其他网站的图片往往显示一个不显示,但是单独放在浏览器访问,却又可以。 php模拟reffer破解防止盗用图片: ?php error_reporting(0); $HOST = java-er.com; require class/db.php...[详细]
-
深入分析php表单加入Token防止重复提交的例子
[PHP教程] 2022-02-23 15:26:11 89人阅读
Token浅谈:Token,就是令牌,最大的特点就是随机性,不可预测。一般黑客或软件无法猜测出来。 那么,Token有什么作用?又是什么原理呢? Token一般用在两个地方防止表单重复提交、anti csrf攻击(跨站点请求伪造)。...[详细]
-
PHP中的use关键字及文件的加载详解
[PHP教程] 2022-02-23 15:25:50 134人阅读
可能在大家经常使用框架,写一个Controller或者Model的时候,写了好多use,但是并没有写文件加载的代码,就以为use可以进行文件的自动加载了。 详细介绍: 其实,现在流行的php框架,都是基于MVC模式的,大量的使用了...[详细]
-
怎么利用PHP抓取百度阅读
[PHP教程] 2022-02-23 15:24:33 83人阅读
本文实例讲述了PHP编程实现的TCP服务端和客户端功能。分享给大家供大家参考,具体如下: 1、修改php.ini,打开extension=php_sockets.dll 2、服务端程序SocketServer.php ?php //确保在连接客户端时不会超时 set_tim...[详细]
-
使用PHP访问RabbitMQ消息队列的方法示例
[PHP教程] 2022-02-23 15:24:04 124人阅读
本文实例讲述了使用PHP访问RabbitMQ消息队列的方法,分享给大家供大家参考,具体如下. 扩展安装 PHP访问RabbitMQ实际使用的是AMQP协议,所以我们只要安装epel库中的php-pecl-amqp这个包即可 rpm -ivh http://mirror.ne...[详细]
-
简单分析PHP中序列化用法介绍
[PHP教程] 2022-02-23 15:23:26 73人阅读
0x00 序列化函数 serialize():返回带有变量类型和值的字符串 unserialize():想要将已序列化的字符串变回 PHP 的值 测试代码: ?php class test{ var $a; var $b; function __construct($a,$b,$c){ $a = $a; $this-b...[详细]
-
PHP设计模式之 原型模式学习笔记
[PHP教程] 2022-02-23 15:20:09 199人阅读
原型模式和其它的模式相对有一些不同之处了,这个也是当然了所有的设计模式中的各种模式都有自己的特色了,下面一起来看看。 原型模式其实和工厂模式比较类似,都是用来创建对象的,只不过与工厂模式的实现不同。原...[详细]
-
PHP设计模式之 单例模式的学习笔记
[PHP教程] 2022-02-23 15:19:50 81人阅读
单例模式小编讲过非常的多了,今天小编看到一个朋友分享的一篇单例模式了,下面我们一起来看看,希望文章能够对各位带来帮助。 博主最近开始真正的潜心学习PHP的各种设计模式。刚开始当然从一些简单的设计模式开始学...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]