-
php 通过curl post发送json数据示例
[PHP教程] 2022-01-18 15:50:23 106人阅读
利用php curl发送json数据与curl post其它数据是一样的,下面我来给大家总结几个关于curl post发送json数据实例,希望能加深各位对curl post json数据的理解吧。 例1代码如下: $data = array(name = Hagrid, age = 36)...[详细]
-
PHP会员找回密码功能实现实例说明
[PHP教程] 2022-01-18 15:49:48 115人阅读
如果你做的网站有会员系统那必须就自动找回密码功能了,也就是忘记密码功能,如果用户忘记了密码可以通过邮箱或手机号直接找回密码,下面我来介绍邮箱找回密码方法。 设置思路 1、用户注册时需要提供一个E-MAIL邮箱,目...[详细]
-
PHP导入导出Excel文件的办法
[PHP教程] 2022-01-18 15:49:12 108人阅读
下面我来给大家介绍在php中操作excel两个实例,一个是利用PHP-ExcelReader导入excel并输出,另一种是直接输入excel并导出,下面看实例。 借助PHP-ExcelReader这个开源类,我们可以轻松地导入Excel文件数据,示例代码如下...[详细]
-
PHP Curl多线程实现原理与实例详解
[PHP教程] 2022-01-18 15:48:43 129人阅读
因为工作中我们经常会需要使用到Curl多线程来处理一些事情,不得己就深入了对Curl多线程研究了,下面小编来给各位同学介绍一下Curl多线程实例与原理吧. 相信许多人对php手册中语焉不详的curl_multi一族的函数头疼不已,...[详细]
-
PHP获得各大视频网站页面中的Flash播放地址
[PHP教程] 2022-01-18 15:47:56 189人阅读
先看一个简单的,我用PHP实现了这个功能,我觉得用PHP来做这项工作简直是一种享受!使用其提供的强大的HTML页面处理函数和正则表达式,短短的几行代码就能搞定这个功能。 贴一下关键代码: ?php //获取优酷页面中的flas...[详细]
-
php 获取qq用户昵称与在线状态实例
[PHP教程] 2022-01-18 15:47:21 172人阅读
如果我们利用php获取QQ用户名与在线状态QQ并未给我们提供api接口了,如果要获取我们可以通过QQ空间或QQ网页版聊天来实现。 QQ通过返回不同的图片,来表示在线或离线,图标也随之变换,既然图片不同,那么,返回的HTTP头信...[详细]
-
php curl模块模拟登录后采集页面示例
[PHP教程] 2022-01-18 15:46:28 53人阅读
在php中curl模块是一个多线程的模块,他可以很方便的实现模拟登录,如post,get都可以,下面我来举一个实例利用curl模块模拟登录后采集页面程序. 今天接到的功课是从一个网站获取商品库存,但是这个网站需要登录,我用fsoc...[详细]
-
PHP curl 获得响应的状态实例
[PHP教程] 2022-01-18 15:46:02 165人阅读
PHP curl可以从服务器端模拟一个http请求,例如抓取网页、模拟登陆等,根据选项设置,可以在curl_exec的返回结果中获取到响应头和body,但这没有响应的状态吗,想要获取状态吗,需要在执行curl_exec后再通过curl_getinfo来...[详细]
-
php中cookie完成二级域名可访问操作实例
[PHP教程] 2022-01-18 15:44:52 93人阅读
cookie在一些应用中很常用,我有一个多级域名要可以同时访问主域名绑定的cookie,下面我来给大家具体介绍在php中利用setcookie实现二级域名可以成功访问主域名cookie值的方法. 有时候两个域名可能在不同的服务器上,但...[详细]
-
PHP对腾讯微博发布与收听实例程序
[PHP教程] 2022-01-18 15:44:24 110人阅读
我们这里是演示一个实例就是可根据用户输入自己的腾讯微博就可以实现快速发布了,这个功能我们自己开发也简单,直接把用户名与密码加上即可解决,下面来介绍一下如何通过PHP来进行腾讯微博操作,也可以直接查看演示。 ...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]