phpredis是个人觉得最好的一个php-redis客户端,因为其提供的function与redis的命令基本一致,降低的了学习成本,同时功能也很全面。一。linux安装方法phpredis下载地址:https://github.com/nicolasff/phpredisunzip phpred...
分类:
Web程序 时间:
2014-06-28 12:35:33
阅读次数:
278
安装apache:yum install httpd httpd-devel启动apache:/etc/init.d/httpd start此时输入服务器的IP地址,应该看到apache的服务页面,端口不用输,apache默认就是使用80端口安装mysql:yum install mysql mys...
分类:
Web程序 时间:
2014-06-28 12:24:21
阅读次数:
211
在opencart中,几乎所有的版权信息都写在language里,我们找到catalog/language/your language/mail/order.php这个语言文件,找到$_['text_new_powered'] = 'Powered By OpenCart.';把单引号里的内容替换成...
分类:
其他好文 时间:
2014-06-28 12:20:12
阅读次数:
286
1、下载php源码包http://www.php.net/downloads.php2 、安装phptar -xvf php-5.5.13.tar.bz2cd php-5.5.13./configure --prefix=/usr/local/php --with-config-file-path=...
分类:
Web程序 时间:
2014-06-28 11:46:15
阅读次数:
259
yuminstallphp-pgsql 在开始使用PHP PostgreSQL接口,打开pg_hba.conf文件(在PostgreSQL安装目录),并添加下面一行:#IPv4localconnections:hostallall127.0.0.1/32md5使用start/restart启动Pos...
分类:
数据库 时间:
2014-06-28 11:39:56
阅读次数:
899
php实现的短网址算法,理论上支持1,073,741,824个短网址。每个网址用6个字符代替,(6^32) 最多可以拥有1,073,741,824个短网址。当然,你还可以记录更详细的信息,如访问记录,创建时间等。如果真不够用了,还可以删掉很久不用的。function shorturl($input)...
分类:
Web程序 时间:
2014-06-28 11:31:57
阅读次数:
136
/var/lib/pgsql/data/pg_hba.confCentOS 6.3下PostgreSQL 的安装与配置http://www.cnblogs.com/mchina/archive/2012/06/06/2539003.htmlpostgresAdmin3http://www.cnblo...
分类:
数据库 时间:
2014-06-28 11:20:25
阅读次数:
375
PHP提交表单失败后如何保留已经填写的信息。PHP提交表单失败后如何保留填写的信息一些方法总结,其中最常用的就是使用缓存方式了,这种方法如果网速慢是可能出问题的,最好的办法就是使用ajax了。1.使用header头设置缓存控制头Cache-control。PHP代码:header('Cache-co...
分类:
Web程序 时间:
2014-06-28 11:05:59
阅读次数:
251
[root@linux ~]# mysql -u root -p 123456Enter password: ERROR 1049 (42000): Unknown database '123456'[root@linux ~]# mysql -u root -p Enter password: W...
分类:
数据库 时间:
2014-06-28 10:55:09
阅读次数:
254
一、 smarty引用把这段代码添加到zendframework根目录下的index.php里,include './library/Smarty/libs/Smarty.class.php';$smarty = new Smarty();$smarty -> template_dir = "./a...
分类:
其他好文 时间:
2014-06-21 14:13:59
阅读次数:
266