-
使用PHP json_decode可能遇到的坑与解决方法
[PHP教程] 2021-02-24 02:44:37 105人阅读
前言 最近在做网站 的时候用到了json_decode函数,发现了一个问题,现在总结分享出来供大家参考学习,话不多说了,来一起看看详细的介绍吧。 场景: 某项目客户反馈,输出的结果 JSON 中有个要求为对象的数据字段,...[详细]
-
phpStudy中升级MySQL版本到5.7.17的方法步骤
[PHP教程] 2021-02-23 12:06:35 94人阅读
前言 今天在工作发现一个错误,在往本地导数据表的时候老是报错: 报错的数据表字段: 同事说同一个 sql 文件他可以导成功。猜可能是数据库版本的问题,同事的是 5.6,我查了下本地的数据库版本是 5.5.53。网上查了...[详细]
-
Kindeditor编辑器添加图片上传水印功能(php代
[PHP教程] 2021-02-23 12:05:47 112人阅读
KindEditor 是一套开源的在线HTML编辑器,开发人员可以用 KindEditor 把传统的多行文本输入框(textarea)替换为可视化的富文本输入框。可以无缝地与 Java、.NET、PHP、ASP 等程序集成,比较适合在 CMS、商城、论坛、...[详细]
-
PHP7扩展开发教程之Hello World实现方法示例
[PHP教程] 2021-02-23 12:05:12 152人阅读
本篇章节讲解PHP7扩展开发教程之Hello World实现方法。供大家参考研究具体如下: 一、下载PHP源代码 要开发PHP扩展,需要先下载PHP的源代码,一方面是因为我们的扩展一般会用到PHP自身定义的函数和宏,另一方面我们...[详细]
-
php7安装yar扩展的方法详解
[PHP教程] 2021-02-23 11:50:55 115人阅读
本篇章节讲解php7安装yar扩展的方法。供大家参考研究具体如下: 体验RPC框架Yar需要: 1. 装二进制打包协议msgpack 2. 装yar拓展和依赖 一. 安装二进制打包协议msgpack 1. 安装PHP拓展包有很多种方式,当然没什么是...[详细]
-
Win10 下安装配置IIS + MySQL + nginx + php7.1
[PHP教程] 2021-02-23 11:47:53 116人阅读
环境: VMWare Workstation Player12 Windows10 Pro x64 一、安装系统 vmware 会采用 fast install 方式很快装完,无需配置什么。 二、配置 IIS 在“程序和功能”下,打开“启用或关闭Windows功能”。把 Internet In...[详细]
-
PHP实现将优酷土豆腾讯视频html地址转换成flash
[PHP教程] 2021-02-23 11:47:05 101人阅读
本篇章节讲解PHP实现将优酷土豆腾讯视频html地址转换成flash swf地址的方法。供大家参考研究具体如下: 很多用户不知道如何复制flash地址,只能在程序中帮他们替换了: ";/** * 腾讯视频转换测试 * * html地址 http:...[详细]
-
CakePHP框架Model关联对象用法分析
[PHP教程] 2021-02-23 11:46:25 116人阅读
本篇章节讲解CakePHP框架Model关联对象。供大家参考研究具体如下: CakePHP 提供关联数据表间的映射,共有4种类型的关联: hasOne , hasMany , belongTo , hasAndBelongsToMany . 设定了Model间的关联关系定义,CakePH...[详细]
-
CakePHP框架Model函数定义方法示例
[PHP教程] 2021-02-23 11:37:36 84人阅读
本篇章节讲解CakePHP框架Model函数定义方法。供大家参考研究具体如下: 在CakePHP中,MVC的架构是清晰的,而在实际做项目中,我发现仍然有很多人喜欢在Controller中堆砌函数,这样做也未尝不可,但是,作为一个百万行级的...[详细]
-
PHP基于自定义类随机生成姓名的方法示例
[PHP教程] 2021-02-23 11:35:21 195人阅读
本篇章节讲解PHP基于自定义类随机生成姓名的方法。分享给大家供大家参考,具体如下: 自定义类rndChinaName.class.php: getXingList(); $this->getMingList(); } /* 获取姓列表 */ private function getXingList() ...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]