-
php扩展开发实例详解
[PHP教程] 2022-02-23 14:48:34 179人阅读
php扩展开发对于很多朋友来讲都不太可能实现现因为php扩展开发是需要懂c的,下面我来为各位介绍一个 php扩展开发例子吧. 一、自动化建立扩展框架 到源码ext目录下,帮助. ./ext_skel --extname=xiami_ext 生成如下几个...[详细]
-
PHPMailer配置ssl连接smtp服务器失败解决办法
[PHP教程] 2022-02-23 14:48:06 80人阅读
PHPMailer是一款邮件发送插件了,我们只要简单的配置就可以实现发邮件了,但小编在配置使用ssl时发现无法连接服务器了,下面我们来看问题解决办法. 使用PHPMailer发送邮件都是使用未加密的smtp服务器,这次使用的smtp服...[详细]
-
php实现主域名与二级域名共享session并单点登录
[PHP教程] 2022-02-23 14:47:44 146人阅读
其实php下cookies或session实现多二级域名同时登录小编觉得还是比较简单了,下面一起来看一个例子吧. 公司网站设置了几个二级域名,老板要求无论会员走到哪个域名,主域名或者二级域名,用户都是登录状态,而不需要重新登...[详细]
-
php curl下载文件来处理服务器间文件手动同步
[PHP教程] 2022-02-23 14:47:15 113人阅读
php curl函数是可以实现文件下载功能了,下面这个例子是利用php curl下载文件来处理服务器间文件手动同步了,有兴趣的可进入看看. 有一个需求,情况如下: 两台服务器,一台测试服务器[apache],一台生产服务器[nginx],产...[详细]
-
PHP的cURL库实现网页抓取例子介绍
[PHP教程] 2022-02-23 14:46:46 171人阅读
使用PHP的cURL库可以简单和有效地去抓网页,你只需要运行一个脚本,然后分析一下你所抓取的网页,然后就可以以程序的方式得到你想要的数据了,无论是你想从从一个链接上取部分数据,或是取一个XML文件并把其导入数据库,那...[详细]
-
php curl网站采集的实现程序
[PHP教程] 2022-02-23 14:42:45 67人阅读
网站采集功能现在多半会使用火车头这些软件来实现了,但是对于一些定时或小的采集我们可以使用程序来实现,在php中curl是当选的一个函数了,下面一起来看看curl网站采集的实现程序吧. 选择curl的理由 关于curl与file_ge...[详细]
-
php实现微信红包的程序算法
[PHP教程] 2022-02-23 14:41:14 159人阅读
下面来看一个我们在生活中常碰到的一个php实现微信红包的程序算法,希望这个程序对各位做微信开的朋友会带来帮助,最近一直在微信群里体验红包功能,红包类型有. 普通红包 拼手气红包两种 普通红包就不用多解析了,大锅...[详细]
-
PHP单例模式编写的PDO类的程序
[PHP教程] 2022-02-23 14:40:46 60人阅读
下面的代码是用此前一个名为MyPDO的类改写的,引入了单例模式来保证在全局调用中不会重复实例化这个类,降低系统资源的浪费,用php大部分操作都是和各种数据库打交道,包括mysql,redis,memcache等各种关系型和非关系型数...[详细]
-
php中PDO入门学习笔记
[PHP教程] 2022-02-23 14:39:45 78人阅读
PDO是高版本php中的一个mysql数据库操作功能了,我们下面就一起来看看关于php中PDO的一些学习笔记,有兴趣了解PDO的朋友可一起来看看哦. 一、PDO简介 PDO是PHP Data Object的简称,用于定义数据库访问的抽象层,统一各种...[详细]
-
深入分析PHP PDO配置及使用方法
[PHP教程] 2022-02-23 14:39:25 121人阅读
PDO(PHP数据对象) 是一个轻量级的、具有兼容接口的PHP数据连接拓展,是一个PHP官方的PECL库,随PHP 5.1发布,需要PHP 5的面向对象支持,因而在更早的版本上无法使用,下面我们一起来了解一下PHP PDO配置及使用方法 PDO(...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]