-
WebQQ网页hash加密算法PHP版
[PHP教程] 2022-02-09 13:41:01 103人阅读
由于最近QQ垃圾信息群发严重,官方选择将WebQQ部分功能实现细节方面做了点手脚,其中获取好友的POST值多了一个hash参数,这个hash是在js里加密完成的,以下是js源码: script type=text/javascript function getHash(b, i...[详细]
-
php批量设置IIS目录实例代码
[PHP教程] 2022-02-09 13:40:29 170人阅读
?php //获取文件目录列表,该方法返回数组 function getDir($dir=) { $dir=emptyempty($dir) ? getcwd() : $dir; $dirArray[]=NULL; if (false != ($handle = opendir ( $dir ))) { $i=0; while ( false !== ($file =...[详细]
-
php批量修改windows目录权限程序
[PHP教程] 2022-02-09 13:40:08 179人阅读
我们经常会碰到一些问题像目录权限无法访问了,这时可能有几百或上千个文件或文件目录,下面我写了一个利用php来批量更改目录权限的实例,代码如下: ?php //获取文件目录列表,该方法返回数组 function getDir($dir=) { ...[详细]
-
一个PHP SoapServer实例代码
[PHP教程] 2022-02-09 13:39:54 97人阅读
PHP SoapServer实例代码 server端代码: ?php if (!isset($_SERVER[PHP_AUTH_USER]) || !isset($_SERVER[PHP_AUTH_PW]) || !($_SERVER[PHP_AUTH_USER] == outsider $_SERVER[PHP_AUTH_PW] == 123456)) { header(WWW-A...[详细]
-
php计划任务示例详解
[PHP教程] 2022-02-09 13:39:34 190人阅读
一、在Crontab中使用PHP执行脚本 就像在Crontab中调用普通的shell脚本一样,具体Crontab用法,使用PHP程序来调用PHP脚本,每一小时执行myscript.php如下: #crontab -e 00 * * * * /usr/local/bin/php /home/web/abc.php...[详细]
-
php file_get_contents 设置代理抓取页面示例
[PHP教程] 2022-02-09 13:39:08 120人阅读
file_get_contents函数在php中可以直接打开本地文件也可以直接抓取远程服务器文件,如果简单的采集我们可以使用file_get_contents直接来操作,如果有防采集我们可能需要代理来操作,下面我来介绍file_get_contents抓取...[详细]
-
php版微信公共平台开发者认证实例
[PHP教程] 2022-02-09 13:38:46 78人阅读
微信公众平台如何成为开发者? 登录微信公众平台后,点击高级功能=》开发模式=》成为开发者=》填写接口配置信息,提交后等待我司工作人员的审核. 1.开发者认证 这个最简单了,直接上个超简单版代码: exit($_GET[echostr...[详细]
-
php Exception打印error trace 实例
[PHP教程] 2022-02-09 13:31:06 124人阅读
本文章来给各位同学介绍关于php Exception打印error trace 实例,对于php的Exception,可以通过getTraceAsString获得错误,而对于error则应该如下: function x() $x = debug_backtrace(); //remove stack of this funct...[详细]
-
php检测url页面是否运用gzip压缩小结
[PHP教程] 2022-01-21 14:21:58 165人阅读
gzip压缩是一种很好的页面压缩传送方式,我们经常会在服务器端打开了,这样一个100K的文件通过gzip压缩之后可能只有20KB不到,下面我来介绍一下gzip压缩检测与开启方法. 如何打开gzip压缩传输呢? apache,第1步,代码如下...[详细]
-
PHP判断客户浏览器是否安装alexa工具条程序
[PHP教程] 2022-01-21 14:21:38 85人阅读
众所周知,alexa工具条是常用的网站第三方统计工具,通常我们会自行定制alexa工具条用来让用户安装,通过用户对工具条内容的点击来提高网站在alexa的排名. 如果我们在一些必要的php应用中需要强制用户安装,这就涉及到了...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]