-
深入浅析PHP的session反序列化漏洞问题
[PHP教程] 2021-01-18 07:14:20 104人阅读
在php.ini中存在三项配置项: 以上的选项就是与PHP中的Session存储和序列话存储有关的选项。 在使用xampp组件安装中,上述的配置项的设置如下: 在上述的配置中,session.serialize_handler是用来设置session的序列...[详细]
-
PHP中phar包的使用教程
[PHP教程] 2021-01-18 07:13:26 143人阅读
前言 PHP5.3之后支持了类似Java的jar包,名为phar。用来将多个PHP文件打包为一个文件。 首先需要修改php.ini配置将phar的readonly关闭,默认是不能写phar包的,include是默认开启的。 On 创建一个phar压缩包 buildFr...[详细]
-
详解Yii2.0使用AR联表查询实例
[PHP教程] 2021-01-18 07:11:53 184人阅读
Yii2.0中使用联表查询有两种办法,第一种是查询构建器(Query Builder),第二种使用活动记录(Active Record),中文网对查询构建器讲的很详细,AR则说的很坑爹,下面贴出自己实践的方法,以供参考。 两个表 {{%art...[详细]
-
详解Yii2 之 生成 URL 的方法
[PHP教程] 2021-01-18 07:11:23 145人阅读
前言 在项目中,推荐使用 Yii2 内置的 URL 工具类生成链接,这样可以非常便捷的管理整站的 URL 行为:比如通过修改配置改变整站的URL格式等。URL 更多高级的用法参见官方文档,这篇文章仅仅介绍 Yii2 生成 URL 的几...[详细]
-
PHP+Mysql+Ajax实现淘宝客服或阿里旺旺聊天功能
[PHP教程] 2021-01-18 07:08:11 66人阅读
首先来看一下我已经实现的效果图: 消费者页面:(本篇随笔) (1)会显示店主的头像 (2)当前用户发送信息显示在右侧,接受的信息,显示在左侧 店主或客服页面:(下一篇随笔) (1)在左侧有一个列表 ,会显示所...[详细]
-
php使用str_replace替换多维数组的实现方法分析
[PHP教程] 2021-01-18 07:07:36 94人阅读
本篇章节讲解php使用str_replace替换多维数组的实现方法。供大家参考研究具体如下: 在php中,如果使用str_replace替换数组中的字符串,只能替换一维的数组,如果是多维数组的话,不能实现全部字符串的替换。于是就...[详细]
-
php读取出一个文件夹及其子文件夹下所有文件的
[PHP教程] 2021-01-18 07:06:48 50人阅读
本篇章节讲解php读取出一个文件夹及其子文件夹下所有文件的方法。供大家参考研究具体如下: 今天的需求要在一个文件夹中读取出这个文件夹下所有的文件,当然也包括这个文件夹下面所有的子文件夹,当然网上有很多的教...[详细]
-
PHP 7安装调试工具Xdebug扩展的方法教程
[PHP教程] 2021-01-18 07:05:44 89人阅读
前言 说到PHP代码调试,对于有经验的PHPer,通过echo、print_r、var_dump函数,或PHP开发工具zend studio、editplus可解决大部分问题,但是对于PHP入门学习的童鞋来说有一定的难度,而且仅仅通过上述这些PHP调试手段...[详细]
-
php 生成加密公钥加密私钥实例详解
[PHP教程] 2021-01-18 07:05:02 57人阅读
php 生成加密公钥加密私钥实例详解 生成公钥私钥 win下必须要openssl.cof支持 liunx一般已自带安装 "sha512","private_key_bits...[详细]
-
PHP实现对xml进行简单的增删改查(CRUD)操作示例
[PHP教程] 2021-01-17 21:44:50 131人阅读
本篇章节讲解PHP实现对xml进行简单的增删改查(CRUD)操作。分享给大家供大家参考,具体如下: 假如有下面xml文件: 55.8 56 40 339 如何使用php对它进行CRUD?其实像这种简单的xml文件使用 SimpleXMl 再好不过了。你...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]