-
PHP使用Redis的GEO 地理位置 指令
[PHP教程] 2022-02-24 14:28:58 182人阅读
Redis自3.2版本开始新增对GEO(地理位置)的支持,但是地球不是一个完美的球体,在最坏的情况下的偏差可能是0.5%。接近两极的区域是不支持的,支持坐标的有效的经度从-180度到180度;有效的纬度从-85.05112878度到85.0...[详细]
-
php怎样防范xss
[PHP教程] 2022-02-24 14:28:24 143人阅读
php防范xss的方法有在输出html时,加上Content Security Policy的Http Header;在设置Cookie时,加上HttpOnly参数;检验请求的Referer参数 php防范xss 1、PHP直接输出html的,可以采用以下的方法进行过滤: htmlspec...[详细]
-
php完成监听事件
[PHP教程] 2022-02-24 14:27:58 169人阅读
本文介绍关于在php实现事件监听与触发实例程序代码,如何实现事件监听,参考了jQuery的事件绑定思路,简单的实现了一下。 主要功能: 1.绑定事件 支持一个事件绑定多个动作,支持绑定一次性事件 2.触发事件 3.注销事...[详细]
-
php什么时候运用闭包
[PHP教程] 2022-02-24 14:27:09 53人阅读
php中的闭包的使用场景有:在动态调用静态类时,在callback函数中使用,赋值给一个普通的变量,使用use从父域中继承以及传递参数时 闭包函数 匿名函数,也叫闭包函数(closures),允许 临时创建一个没有指定名称的...[详细]
-
php escapeshellcmd多字节编码漏洞
[PHP教程] 2022-02-24 14:26:50 124人阅读
漏洞公告在http://www.sektioneins.de/advisories/SE-2008-03.txt PHP 5 = 5.2.5 PHP 4 = 4.4.8 一些允许如GBK,EUC-KR, SJIS等宽字节字符集的系统都可能受此影响,影响还是非常大的,国内的虚拟主机应该是通杀的,...[详细]
-
用php完成简单的滑动菜单
[PHP教程] 2022-02-24 14:26:24 65人阅读
style table {font-size = 9pt} td {height = 20px} /style body span id=menus/span span id=view/span /body script for=pad event=onclick * 产生菜单的html代码串 * 入口参数为菜单默认打开的大类号 */ function...[详细]
-
PHP下一代的五个framework说明
[PHP教程] 2022-02-24 14:25:59 155人阅读
随便编写php的日子将远去了。下面有5个下一代的php框架。每个框架都为php下一步发展做了高深设计,许多都应和Ruby on Rails,快速开发动态语言,更有甚者, php on trax 直指 Ruby on Rails。如下面所列的frameworks...[详细]
-
用PHP和XML联手进行网站开发
[PHP教程] 2022-02-24 14:24:45 135人阅读
一、小序 HTML简单易学又通用,一般的PHP程序就是嵌入在HTML语言之中实现的。但是随着WEB越来越广泛的应用,HTML的弱点也越来越明显了。XML的出现,弥补了这些不足,它提供了一个能够处理互联网上全部数据的通用方法...[详细]
-
PHP支持CURL字符串证书传输的方法说明
[PHP教程] 2022-02-24 14:23:23 158人阅读
本篇文章给大家带来的内容是关于PHP支持CURL字符串证书传输的方法介绍(代码),有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。 最近在对接微信支付的时候,需要在退款处用到证书,由于我们是SAAS...[详细]
-
php里如何使用C语言写扩展
[PHP教程] 2022-02-24 14:22:55 160人阅读
本篇文章给大家带来的内容是介绍如何使用C语言给PHP写扩展,,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。 1、在php源码路径的ext文件夹下,新建一个extend_test.def文件,编辑文件内容为: st...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]