-
微信接口生成带参数的二维码
[PHP教程] 2021-02-24 19:44:47 168人阅读
为了满足用户渠道推广分析的需要,公众平台提供了生成带参数二维码的接口。使用该接口可以获得多个带不同场景值的二维码,用户扫描后,公众号可以接收到事件推送。 用户扫描带场景值二维码时,可能推送以下两种事件...[详细]
-
php实现将二维关联数组转换成字符串的方法详解
[PHP教程] 2021-02-24 19:16:55 107人阅读
本篇章节讲解php实现将二维关联数组转换成字符串的方法。供大家参考研究具体如下: 需求 项目中遇到了二维关联数组转字符串的问题,查阅相关资料,写了如下程序,并且能过滤重复的关键字。 举例,php的二维数组如下...[详细]
-
PHP针对伪静态的注入总结【附asp与Python相关代
[PHP教程] 2021-02-24 19:16:05 68人阅读
本篇章节讲解PHP针对伪静态的注入。供大家参考研究具体如下: 一:中转注入法 1.通过http://www.xxx.com/news.php?id=1做了伪静态之后就成这样了http://www.xxx.com/news.php/id/1.html 2.测试步骤: 中转注入的php...[详细]
-
php中文乱码问题的终极解决方案汇总
[PHP教程] 2021-02-24 19:14:26 77人阅读
前言 本文主要给大家介绍了关于php中文乱码问题的终极解决方案,分享出来供大家参考学习,在开始之前,我们先来谈谈为什么会出现中文乱码? 很多新手朋友学习PHP的时候,发现程序中的中文在输出的时候会出现乱码的问...[详细]
-
PHP正则匹配中英文、数字及下划线的方法【用户
[PHP教程] 2021-02-24 19:07:36 150人阅读
本篇章节讲解PHP正则匹配中英文、数字及下划线的方法。供大家参考研究具体如下: 一、问题: 对于用户注册时的用户名要求由中英文、数字或下划线组成,不得含有其他字符。 二、解决方法: 针对输入字符进行中英文、...[详细]
-
PHP读取word文档的方法分析【基于COM组件】
[PHP教程] 2021-02-24 19:06:46 134人阅读
本篇章节讲解PHP读取word文档的方法。供大家参考研究具体如下: php开发 过程中可能会word文档的读取问题,这里可以利用com组件来完成此项操作 一、先开启php.ini的COM ,操作如下 1. 2. 二、开启之后就可以试下如下...[详细]
-
如何修改yii2.0自带的user表为其它的表
[PHP教程] 2021-02-24 04:14:19 190人阅读
因为某种原因,不想用yii自带的user表,想用自己建的admin数据库表,修改如下: 1. 参考高级模板里里的 common\models\User 修改 Admin 2. 修改配置文件里面的 [ //'identityClass...[详细]
-
修改yii2.0用户登录使用的user表为其它的表实现
[PHP教程] 2021-02-24 04:13:47 76人阅读
这只是自己练习的一个记录而已。 因为某种原因,不想用yii自带的user表,想用自己建的admin数据库表,修改如下: 1. 参考高级模板里里的common\models\User 修改 Admin 2. 修改配置文件里面的 [ //'identityClass...[详细]
-
TP3.2批量上传文件或图片 同名冲突问题的解决方
[PHP教程] 2021-02-24 04:09:36 71人阅读
本文实例为大家分享了TP3.2批量上传文件或图片的具体代码,并解决了同名冲突问题,供大家参考,具体内容如下 1、html 2、php maxSize = 3145728; $upload->rootPath = './Uploads/'; $upload->savePath = 'image/'; ...[详细]
-
Yii2 队列 shmilyzxt/yii2-queue 简单概述
[PHP教程] 2021-02-24 04:08:54 101人阅读
shmilyzxt/yii2-queue 简单解释: 1.我用的yii2高级版,我们从配置开始看代码,这里我用的是mysql队列,首先配置文件,我把queue配置项写在根目录 common\config\main-local.php 下的 components 数组下,更改一下数据库配...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]