一:匿名函数 (在php5.3.0 或以上才能使用) php中的匿名函数(Anonymous functions), 也叫闭包函数(closures), 允许指定一个没有名称的函数。最常用的就是回调函数的参数值。(http://php.net/manual/zh/functions.anonymo....
分类:
Web程序 时间:
2014-08-06 17:32:31
阅读次数:
248
在PHP5.4的环境下要连接SQLSERVER(2005/2008)数据库,需要以下步骤:1.下载PHP5.4连接SQLSERVER的驱动(两个动态连接库)http://www.microsoft.com/en-us/download/confirmation.aspx?id=20098 解压得到两...
分类:
数据库 时间:
2014-08-05 13:42:09
阅读次数:
477
MemAdmin是一款可视化的Memcached管理与监控工具,基于 PHP5 & JQuery 开发,体积小,操作简单。主要功能:服务器参数监控:STATS、SETTINGS、ITEMS、SLABS、SIZES实时刷新服务器性能监控:GET、DELETE、INCR、DECR、CAS等常用操作命中率...
分类:
其他好文 时间:
2014-08-05 11:05:39
阅读次数:
275
windows上安装php+IIS设置 1、安装PHP5 下载: http://cn2.php.net/get/php-5.2.0-Win32.zip/from/cn.php.net/mirror 安装: 对php-5.2.0-Win32.zip解压缩到d:\php(可以是其他目录,根据您的具体情况...
sudo apt-get install apache2sudo apt-get install php5sudo apt-get install php5-mcrypt需要开启 mod_rewrite 模块修改 apache2 的配置文件 /etc/apache2/apache2.conf为 la...
分类:
其他好文 时间:
2014-08-04 01:51:56
阅读次数:
309
一、安装环境1、CentOS5.52、php5.43、MySQL5.5.19二、安装程序依赖库和开发环境为了省事把所需要的库文件全都安装上,可以使用rpm包安装,也可以用yum命令安装,1yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-deve...
分类:
数据库 时间:
2014-08-03 23:11:16
阅读次数:
338
Ubuntu下快速搭建LAMP环境过程记录:
安装 Apache2:sudo apt-get install apache2
安装PHP模块:sudo apt-get install php5
安装Mysqlsudo apt-get install mysql-server
安装phpmyadmin 其他模块安装:sudo apt-get install libapac...
分类:
系统相关 时间:
2014-08-03 15:20:05
阅读次数:
413
PHP运行模式:1)cgi通用网关接口(CommonGatewayInterface))2)fast-cgi常驻(long-live)型的CGI3)cli命令行运行(CommandLineInterface)4)web模块模式(apache等web服务器运行的模块模式)HTTPServer有三种架构比较流行:(1)Apache+mod_php5(2)lighttp+spawn-fcgi(3)..
分类:
Web程序 时间:
2014-08-01 20:05:32
阅读次数:
381
1.找到ecshop\includes\cls_image.php文件搜索function gd_version改成static function gd_version2、Strict Standards: Only variables should be passed by reference i...
分类:
Web程序 时间:
2014-08-01 19:10:02
阅读次数:
201
SimpleXML是PHP5后提供的一套简单易用的xml工具集,可以把xml转换成方便处理的对象,也可以组织生成xml数据。不过它不适用于包含namespace的xml,而且要保证xml格式完整(well-formed)。它提供了三个方法:simplexml_import_dom、simplexml...
分类:
Web程序 时间:
2014-07-31 19:49:17
阅读次数:
199