-
简析PHP的ASCII码转换类
[PHP教程] 2022-07-22 12:38:09 188人阅读
本篇文章是对PHP的ASCII码转换类进行了详细的分析介绍,需要的朋友参考下 复制代码 代码如下: class ascii { function decode($str) { preg_match_all( /(d{2,5})/, $str,$a); $a = $a[0]; foreach ($a as $dec) { i...[详细]
-
简析PHP安装扩展mcrypt以及相关依赖项
[PHP教程] 2022-07-22 12:37:05 127人阅读
浅析PHP安装扩展mcrypt以及相关依赖项(PHP安装PECL扩展的方法) 一:Mcrypt简介 Mcrypt是PHP的一个扩展,完成了常用加密算法的封装。其实该扩展是对 mcrypt标准类库的封装,mcrypt完成了相当多的常用加密算法,如DES,...[详细]
-
在windows平台上搭建自己的PHP实现方法仅适用于
[PHP教程] 2022-07-22 12:35:08 168人阅读
本篇文章是对在windows平台上构建自己的PHP实现方法进行了详细的分析介绍,需要的朋友可以参考下(仅适用于php5.2) 构建步骤 1, 安装vs2008 2, 安装windows sdk 6.1 3, 下载php 5.2源码,可以从此处获取Releases (...[详细]
-
教你如何使用php判断服务器是否是HTTPS连接
[PHP教程] 2022-07-22 12:34:38 76人阅读
需要判断代码运行环境是否是HTTPS服务器?下面的代码可以帮助你实现,非常简单 复制代码 代码如下: if ($_SERVER[HTTPS] != on) { echo This is not HTTPS; }else{ echo This is HTTPS; }if ($_SERVER[HTTPS] != on)...[详细]
-
借助PHP实现短域名互转
[PHP教程] 2022-07-22 12:34:01 196人阅读
如何使用PHP实现短域名互转?下面的代码可以帮助你实现,非常简单,需要的朋友可以参考下 复制代码 代码如下: /** * 短域名生成解析类 */ class Build_URL { private $mem; private $base_url = http://xxx.com/; pu...[详细]
-
10款PHP开发框架的比较
[PHP教程] 2022-07-22 12:33:24 187人阅读
PHP开发框架近来在PHP社区中成为讨论的热点,几乎每天都在推出新的框架。面对市面上超过四十种的开发框架,你很难判断究竟哪一款最适合你,尤其是在这些框架所提供的功能不尽相同的时候。 概览 以下你看到是这十款开...[详细]
-
php 注册时输入信息验证器的实现详情
[PHP教程] 2022-07-22 12:32:44 160人阅读
本篇文章是对php中注册时输入信息验证器的实现方法进行了详细的分析介绍,需要的朋友参考下 1、对输入信息进行验证的类(主要用于验证用户名,密码,重复密码,邮箱,可添加其它功能) 复制代码 代码如下: ?php /** ...[详细]
-
深入解析fsockopen与pfsockopen的差异
[PHP教程] 2022-07-22 12:32:18 177人阅读
按手册上说,这两个函数的唯一区别是,pfsockopen是持续连接,而fsockopen不是. 我写了个代码了一下: 复制代码 代码如下: ?php $data=1,0,721,73,1,0,0,43290000,0,60D81D509BC00451,3,FFFFFFFF; //http://10.144.99.11...[详细]
-
运用PHP实现蜘蛛访问日志统计
[PHP教程] 2022-07-22 12:31:56 66人阅读
本篇文章是对使用PHP实现蜘蛛访问日志统计的代码进行了详细的分析介绍,需要的朋友参考下 复制代码 代码如下: $useragent = addslashes(strtolower($_SERVER[HTTP_USER_AGENT])); if (strpos($useragent, googlebot)...[详细]
-
剖析PHP实现下载文件的两种方法
[PHP教程] 2022-07-22 12:31:24 165人阅读
本篇文章是对使用PHP实现下载文件的两种方法进行了详细的分析介绍,需要的朋友参考下 方法一: 复制代码 代码如下: header(Content-Description: File Transfer); header(Content-Type: application/octet-stream); ...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]