-
Content-Disposition使用方法和注意事项
[PHP教程] 2021-03-06 09:28:13 185人阅读
最近不少Web技术圈内的朋友在讨论协议方面的事情,有的说web开发者应该熟悉web相关的协议,有的则说不用很了解。个人认为这要分层次来看待这个问 题,对于一个新手或者刚入门的web开发人员而言,研究协议方面的东西...[详细]
-
PHP基于文件锁解决多进程同时读写一个文件问题
[PHP教程] 2021-03-06 09:28:13 85人阅读
本篇章节讲解PHP基于文件锁解决多进程同时读写一个文件问题。供大家参考研究具体如下: 首先PHP是支持进程的而不支持多线程(这个先搞清楚了),如果是对于文件操作,其实你只需要给文件加锁就能解决,不需要其它操...[详细]
-
PHP实现批量重命名某个文件夹下所有文件的方法
[PHP教程] 2021-03-06 09:28:13 124人阅读
本篇章节讲解PHP实现批量重命名某个文件夹下所有文件的方法。供大家参考研究具体如下: 自己手动这样一个个的重命名,累...[详细]
-
利用swoole+redis实现股票和区块链服务
[PHP教程] 2021-03-06 09:28:13 71人阅读
本文主要给大家介绍了关于swoole+redis实现股票和区块链服务的相关内容,分享出来供大家参考学习,下面话不多说了,来一起看看详细的介绍吧。 PHP 的redis扩展是阻塞式 IO ,使用订阅/发布模式时,会导致整个进程进...[详细]
-
PHP守护进程的两种常见实现方式详解
[PHP教程] 2021-03-06 09:28:13 52人阅读
本篇章节讲解PHP守护进程的两种常见实现方式。供大家参考研究具体如下: 第一种方式,借助 nohup 和 符号, 可以让启动的进程转到后台运行,而不占用控制台,控制台还可以再运行其他命令,这里我使用一个while死循环...[详细]
-
yii2中使用webuploader实现图片上传的实战项目
[PHP教程] 2021-03-06 09:28:13 112人阅读
图片上传几乎是应用必备,前面也针对 做了一篇详细的说明,不过很多人反馈各种问题,下面针对 webuploader 的使用单独写了一个组件。该组件可以更好的处理 Yii2 在图片上传过程中带来的一系列问题,目前支持多图多字...[详细]
-
yii2组件之下拉框带搜索功能的示例代码(yii-se
[PHP教程] 2021-03-06 09:28:13 182人阅读
简单的小功能,但是用起来还是蛮爽的。分享出来让更多的人有更快的开发效率,开开心心快乐编程。 如果你还没有使用过composer,你可就out了,看我的教程分享,composer简直就是必备神奇有木有。都说到这个点上了,我...[详细]
-
PHP获取汉字笔画数功能【测试可用】
[PHP教程] 2021-03-06 03:19:12 72人阅读
本篇章节讲解PHP获取汉字笔画数功能。分享给大家供大家参考,具体如下: 无意中看到这么个东西,用PHP得到汉字的笔画数。以类的方式实现,有那么点意思,先留下了。 tone=$tone; } function setFormat($head,$format...[详细]
-
PHP中关于PDO数据访问抽象层的功能操作实例
[PHP教程] 2021-03-06 03:19:12 65人阅读
PDO:数据访问抽象层 具有三大特点: 1.可以访问其它数据库 所有数据库都可以 2.具有事务功能 3.带有预处理语句功能(防止SQL注入攻击) 实例操作代码如下: //1.造PDO对象 $dsn ="mysql:dbname=mydb;host=localhost...[详细]
-
深入理解PHP中的static和yield关键字
[PHP教程] 2021-03-06 03:14:12 76人阅读
前言 本文主要给大家介绍了关于PHP中static和yield关键字的相关内容,分享出来供大家参考学习,下面话不多说了,来一起看看详细的介绍吧。 先来说说 static 关键字。本篇只讲静态方法的使用与后期绑定的知识点。 sta...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]