-
PHP运用PDO连接ACCESS数据库
[PHP教程] 2022-07-30 13:09:14 172人阅读
PHP使用PDO连接ACCESS数据库 1,参考W3CSHOOL http://www.w3cschool.cc/php/php-pdo.html 2,连接access 代码如下: ?php $db = new PDO(odbc:driver={microsoft access driver (*.mdb)}; dbq=.realpath(data.mdb)) o...[详细]
-
PHP实现加密的几种方式说明
[PHP教程] 2022-07-30 13:07:46 140人阅读
这篇文章主要介绍了PHP实现加密的几种方式,非常全面实用,都是项目中经常需要用到的,需要的朋友可以参考下 PHP中的加密方式有如下几种 1. MD5加密 string md5 ( string $str [, bool $raw_output = false ] ) 参数...[详细]
-
php实现将数组转换为XML的方法介绍
[PHP教程] 2022-07-30 13:07:18 138人阅读
这篇文章主要介绍了php实现将数组转换为XML的方法,实例分析了php操作数组及XML格式文件的技巧,具有一定参考借鉴价值,需要的朋友可以参考下 本文实例讲述了php实现将数组转换为XML的方法。分享给大家供大家参考。具体...[详细]
-
跨浏览器PHP下载文件名中的中文乱码问题解决方
[PHP教程] 2022-07-30 13:06:16 146人阅读
这篇文章主要介绍了跨浏览器PHP下载文件名中的中文乱码问题解决方法,涉及php针对中文编码的转码技巧,具有一定参考借鉴价值,需要的朋友可以参考下 本文实例讲述了跨浏览器PHP下载文件名中的中文乱码问题解决方法。分...[详细]
-
php基于socket实现SMTP发送邮件的方法
[PHP教程] 2022-07-30 13:05:29 108人阅读
这篇文章主要介绍了php基于socket实现SMTP发送邮件的方法,实例分析了php采用socket实现smtp发送邮件的原理与技巧,具有一定参考借鉴价值,需要的朋友可以参考下 本文实例讲述了php基于socket实现SMTP发送邮件的方法。...[详细]
-
php计算两个整数的最大公约数常用算法小结
[PHP教程] 2022-07-30 13:04:39 103人阅读
这篇文章主要介绍了php计算两个整数的最大公约数常用算法,实例总结了求最大公约数的三种常用方法,具有一定参考借鉴价值,需要的朋友可以参考下 本文实例讲述了php计算两个整数的最大公约数常用算法。分享给大家供大家...[详细]
-
PHP 使用memcached简单示例分享
[PHP教程] 2022-07-30 13:04:04 98人阅读
在很多场合,我们都会听到 memcached 这个名字,但很多同学只是听过,并没有用过或实际了解过,只知道它是一个很不错的东东。这里简单介绍一下,memcached 是高效、快速的分布式内存对象缓存系统,主要用于加速WEB动...[详细]
-
PHP实现支持SSL连接的SMTP邮件发送类
[PHP教程] 2022-07-30 13:02:59 110人阅读
这篇文章主要介绍了PHP实现支持SSL连接的SMTP邮件发送类,实例分析了php实现smtp邮件发送类的原理与技巧,以及支持SSL连接的方法,需要的朋友可以参考下 本文实例讲述了PHP实现支持SSL连接的SMTP邮件发送类。分享给大家...[详细]
-
PHP 使用redis简单示例分享
[PHP教程] 2022-07-30 13:02:34 151人阅读
这篇文章主要介绍了PHP 使用redis简单示例分享,主要是给大家展示下,php使用redis的方法,有需要的小伙伴们参考下。 示例很简单,注释里也都做了说明,这里就不多废话了。 代码如下: ?php /*从平台获取数据库名*/ $...[详细]
-
memcache一致性hash的php实现方法
[PHP教程] 2022-07-30 13:01:45 91人阅读
这篇文章主要介绍了memcache一致性hash的php实现方法,实例分析了memcache中hash一致性的实现原理与相关技巧,需要的朋友可以参考下 本文实例讲述了memcache一致性hash的php实现方法。分享给大家供大家参考。具体如下...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]