apt-get build-dep php5安装所需依赖包./configure --enable-opcache --prefix=/opt/php --with-apxs2=/usr/bin/apxs2 --with-mysql=mysqlnd --with-mysqli=mysqlnd --w...
分类:
Web程序 时间:
2014-08-23 16:39:11
阅读次数:
304
一、配置防火墙,开启80端口、3306端口CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:systemctl stop firewalld.service #停止firewallsystemctl disable firewall...
分类:
数据库 时间:
2014-08-23 16:34:21
阅读次数:
463
(来自:http://www.cnblogs.com/vicowong/archive/2011/12/01/2116212.html)环境:系统硬件:vmware vsphere (CPU:2*4核,内存2G)系统版本:CentOS-6.5-x86_64-minimal.iso安装步骤:0.虚拟系...
分类:
数据库 时间:
2014-08-23 11:07:30
阅读次数:
404
在PHP5.4版本当中给我们提供了好用的特性,上传进度的支持,我们可以配合Ajax动态获取SESSION当中的上传进度:在使用这一特性之前,需要现在php.ini文件当中进行相应的设置:123456session.upload_progress.enabled[=On]:是否启用上传进度报告(默认开...
分类:
Web程序 时间:
2014-08-23 02:19:39
阅读次数:
246
今天阳光明媚,万里无云,小记一下php5.3x被弃用的部分函数及代替方法下面列举了部分被弃用的函数:call_user_method():(使用 call_user_func() 替代)call_user_method_array(): (使用 call_user_func_array() 替代)d...
分类:
Web程序 时间:
2014-08-21 16:46:54
阅读次数:
215
server{listen80;server_namelocalhost;#charsetkoi8-r;#access_loglogs/host.access.logmain;location/{roothtml;indexindex.htmlindex.htm;location~.*\.(php|php5)?${fastcgi_passunix:/tmp/php-cgi.sock;fastcgi_indexindex.php;includefastcgi.conf;}auth_basic"Authorize..
分类:
其他好文 时间:
2014-08-20 14:21:52
阅读次数:
238
PHP的命名空间(namespace)是php5.3之后才有的。这个概念在C#中已经很早就有了,php中的namespace其实和c#的概念是一样的。为什么php中要使用namespace?假设如果不使用namespace,那么每个类在一个项目中的名字就必须是固定的。因为php在new的时候不管是调...
分类:
Web程序 时间:
2014-08-19 20:44:45
阅读次数:
264
PHP 5.3中的新特性1. 支持命名空间 (Namespace)2. 支持延迟静态绑定(Late Static Binding)3. 支持goto语句4. 支持闭包、Lambda/Anonymous函数5. 新增两个魔术方法__callStatic()和__invoke()6. 新增Nowdoc语...
分类:
Web程序 时间:
2014-08-19 18:20:36
阅读次数:
262
v6 v9 v11 这里指的的是VC的运行库,具体在百度云盘可以搜索到。httpd-conf# php5 supportLoadModule php5_module D:/PHP/php5/php5apache2_4.dllAddType application/x-httpd-php .php ....
分类:
Web程序 时间:
2014-08-19 18:12:35
阅读次数:
221
新建用户及用户组
groupadd webuser
useradd -g webuser webuser
下载php-5.5
下载链接:http://pan.baidu.com/s/1i3CBshv
分类:
Web程序 时间:
2014-08-19 16:01:46
阅读次数:
196