-
PHP下eAccelerator运用记录
[PHP教程] 2022-01-15 14:04:34 175人阅读
eAccelerator效果 直接引用HiAdmin的结论: eAccelerator 0.9.5.3 25.2266 fetches/sec APC 3.0.19 24.3433 fetches/sec XCache v1.2.2 15.13 fetches/sec No OP-Cache 5.99332 fetches/sec eA的效果最好,APC紧随其...[详细]
-
PHP6将实现的8个特性与功能
[PHP教程] 2022-01-15 14:04:14 127人阅读
今年8月份PHP创始人Rasmus Lerdorf提出的一个wishlist: 1.完全抛弃全局变量 2. 删除Magic Quotes 3. 增加一个输入过滤扩展代替Magic Quotes,提供一个机制让开发者很容易自己关闭或开启这个功能。而不是像现在的作...[详细]
-
让PHP跑在Mac OS X里
[PHP教程] 2022-01-15 14:03:40 154人阅读
MacBook入手了,配置工作环境,首先得让Mac OS支持PHP。不管你是采用集成的开发环境,比如XAMPP for Mac OS X,还是采用Mac OS中自带的Apache和PHP,甚至自己重新编译安装,减少麻烦的第一步就是启用root用户。 本文...[详细]
-
轻松的PHP日历算法
[PHP教程] 2022-01-15 14:03:21 54人阅读
/** * 日历 * * Copyright(c) 2007 by 陈毅鑫(深空). All rights reserved * To contact the author write to {@link mailto:[email protected]} * @author 陈毅鑫(深空) */ if (function_exists(date_default_timez...[详细]
-
php完成查询百度google收录情况
[PHP教程] 2022-01-15 14:02:51 164人阅读
写了一个小东西记录baidu和google对于站点的收录情况,现在可以查询了,其实也没什么难度,就是去file下远程文件,然后分析下。 对了貌似查google pr的东西只是file一个地址而已,如此说了就没有什么难度了 下面是代...[详细]
-
你不知道PHP的10件事情
[PHP教程] 2022-01-15 14:02:31 177人阅读
1.使用 ip2long() 和 long2ip() 函数来把 IP 地址转化成整型存储到数据库里。这种方法把存储空间降到了接近四分之一(char(15) 的 15 个字节对整形的 4 个字节),计算一个特定的地址是不是在一个区段内页更简单了,...[详细]
-
PHP下载CSS文件里的图片的代码
[PHP教程] 2022-01-15 14:01:52 57人阅读
作为一个资深并且专业的扒皮人员,在我从初三开始投入伟大的互联网中到现在积累了丰富的扒皮经验。我相信每个做web的程序员也都会有类似的经历。 在扒皮过程中,必不可少的需要下载样式文件中的图片。碰到比较庞大的...[详细]
-
PHP运用mcrypt拓展的加密算法进行加密解密
[PHP教程] 2022-01-15 14:01:16 64人阅读
数据加密在我们生活中的地位已经越来越重要了,尤其是考虑到在网络上发生的大量交易和传输的大量数据。对于不需要还原为原始数据的信息我们可以使用MD5、sha1等不可逆加密算法对数据进行加密处理,但对于交易信息等...[详细]
-
PHP完成常见排序
[PHP教程] 2022-01-15 14:00:50 145人阅读
//插入排序(一维数组) function insert_sort($arr){ $count = count($arr); for($i=1; $i$count; $i++){ $tmp = $arr[$i]; $j = $i - 1; while($arr[$j] $tmp){ $arr[$j+1] = $arr[$j]; $arr[$j] = $tmp; $j--; } ...[详细]
-
php获取用户IP地址的三个属性的差别
[PHP教程] 2022-01-15 14:00:17 170人阅读
首先分享一段代码 public static function getIP($type=num){ if (getenv(HTTP_CLIENT_IP) strcasecmp(getenv(HTTP_CLIENT_IP), unknown)){ $ip = getenv(HTTP_CLIENT_IP); }elseif (getenv(HTTP_X_FORWARDED_FOR) s...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]