-
php把IP地址转变成广播地址的例子
[PHP教程] 2022-02-18 15:17:37 78人阅读
Broadcast Address(广播地址)是专门用于同时向网络中所有工作站进行发送的一个地址,在使用TCP/IP 协议的网络中,主机标识段host ID 为全1 的IP 地址为广播地址,广播的分组传送给host ID段所涉及的所有计算机. 网络广...[详细]
-
php CURL带有验证码验证登录的示例
[PHP教程] 2022-02-18 15:17:09 143人阅读
以前我们写过很多利用curl模拟登录的,今天我来介绍两个例子都可以实现对方网站有验证码图片时由用户输入验证码之后再验证. 例子,读取远程的验证码利用框架加载到此页面然后手工输入,代码如下: ?php /** * @author 追...[详细]
-
php怎样判断是否为json数据格式
[PHP教程] 2022-02-18 15:16:36 61人阅读
下面我来给各位朋友总结了几篇关于php如何判断是否为json数据的文章,这里整理了一下也能让你知道如何利用php判断json了,希望例子对你带来帮助. 首先要记住json_encode返回的是字符串,而json_decode返回的是对象. 判...[详细]
-
PHP+Ajax远程图片抓取器下载的示例
[PHP教程] 2022-02-18 15:15:55 162人阅读
发送请求:将输入的目标网址及保存路径名称采用AJAX异步的方式发送到image.info.php文件,该文件中包含有一个ImageCatch类,注意,因为有一个是指定目标图片抓取,一个是只要指定一个网址,如http://www.Cuoxin.com形式,...[详细]
-
PHP生成迅雷 快车 QQ旋风下载链接的示例
[PHP教程] 2022-02-18 15:15:21 67人阅读
在php中要生成迅雷、快车、QQ旋风下载链接我们会使用到的加密方式有base64_encode与base64_decode来生成,下面看两个例子,希望对你会带来帮助. 在一些资源下载共享站点中,我们经常遇到需要在下载页中添加各种下载工具...[详细]
-
PHP运用JSON实例分析详解
[PHP教程] 2022-02-18 15:14:31 96人阅读
JSON是一种轻量级别的数据交互格式,他可以方便快捷的提交网络的应用,相对于xml来讲json可读性不强,但要在数据传输上要优于xml,下面我们看几个实例. 在PHP编码JSON(json_encode),PHP json_encode()函数用于在PHP JSON...[详细]
-
共享一个PHP采集远程图片
[PHP教程] 2022-02-18 15:13:29 70人阅读
利用php来采集图片方法很简单本实例使用了fopen来保存文件了,但在此小编建义大家不要使用此方法来获取,如果数据量大量fopen函数性能比curl差得远了,所以大家可尝试改进使用curl来处理,代码如下: ?php /*使用PHP实现...[详细]
-
PHP CURL访问HTTPS使用解析
[PHP教程] 2022-02-18 15:12:56 81人阅读
如果你直接使用PHP CURL函数来抓取http内容可能没有任何问题了,但是如果你要正抓取的是https文件才会发现本文章帮你解决了一个大难题了,下面我们来看看具体操作过程. 三年前写过一篇《一个简陋的支持HTTPS的PHP CURL...[详细]
-
php返回json数据函数示例
[PHP教程] 2022-02-18 15:11:54 91人阅读
json_encode()函数是一个在php中可以把数组转换成json格式的函数了,但json_encode函数对于英文是没有任何问题,如果碰到中文或编码有不致情况时会出现中文转换之后变空了,下面我就来从多方面来介绍php返回json数据应...[详细]
-
php里curl获取返回页面的cookie
[PHP教程] 2022-02-18 15:11:32 63人阅读
php的curl可以模仿用户浏览网页并且获取网页的cookie,获取cookie还有专用的参数如CURLOPT_COOKIEJAR 用于保存 cookie 到文件了,下面一起来看几个例子吧. curl可以获取返回页面设置的cookie,原理跟get_headers是一样...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]