摘要: <?php$arrs = array ( array ( '286', '127.0.0.1' ), array ( '287', '127.0.0.1' ), array ( '288', '127.0.0.1' ), array ( '289', '1... 阅读全文
posted @ 2013-01-14 09:59 awinlei 阅读(5830) 评论(0) 推荐(0) 编辑
摘要: 使用Menu Maker 进行导航设计的批量处理,使用默认的links表来保存导航首先安装插件:http://wordpress.org/extend/plugins/menumaker/或者http://downloads.wordpress.org/plugin/menumaker.0.6.zip说明文档:Upload themenumakerdirectory to the/wp-content/plugins/directoryActivate the plugin through the 'Plugins' menu in WordPressGo to Options 阅读全文
posted @ 2013-01-09 16:34 awinlei 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 这两天在折腾discuz 的英文版,发现2.0版本有不错的英文版,但是我们要求注册的时候密码长度有限制,搜索了很多,但是都没有找到合适,最后决定自己分析源码来操作,主要是两个文件。1,$Id: static/js/lang_js.js 红色部分为新添加。//--------------------------------//static/js/register.js 'username_invalid' : 'User name contains invalid characters',//'用户名包含敏感字符', 'username_s 阅读全文
posted @ 2013-01-08 17:42 awinlei 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 主要是因为5.4.3的curl.dll的问题导致,替换为新的版本就okhttp://vdisk.weibo.com/s/oHnJBhttp://forum.wampserver.com/read.php?2,85716Go to [www.anindya.com] download *php_curl-5.4.3-VC9-x64.zip* under "Fixed curl extensions:" and replace the php_curl.dll in ext folder. This worked for me. 阅读全文
posted @ 2013-04-09 10:21 awinlei 阅读(219) 评论(0) 推荐(0) 编辑
摘要: I was having the same problem when I was trying to login to the backend. Magento kept redirecting me to the login page without any warnings whatsoever.I added a new entry on my local hosts file (c:\windows\system32\drivers\etc) like this:127.0.0.1 localhost.comand I installed magento again using loc 阅读全文
posted @ 2013-04-08 18:00 awinlei 阅读(2026) 评论(0) 推荐(0) 编辑
摘要: 这几天弄的东西涉及到php利用shell脚本与Linux的交互,我们知道利用php运行脚本来访问Linux是以Apach的身份来执行的,因此它自己能够所做的事情很少的,因为没有足够的权限,这里就涉及到要将为php执行的时候赋予root权限。接下来介绍的这种方法,我自己是亲自做了的,可以实现,但是毕竟有它的缺点,这里跟大家分享一下,希望大家有什么好的做法可以提示一下:这是利用C来实现互换权限的,如果你想彻底明白到底为什么接下来的程序可以运行成功,请彻底弄清楚SUID与SGID到底起什么作用。[plain]view plaincopy#include<stdio.h>#include& 阅读全文
posted @ 2013-04-02 13:58 awinlei 阅读(15798) 评论(1) 推荐(1) 编辑
摘要: /usr/local/apache/bin/rotatelogs 这个执行程序会根据安装方式不同的位置也不同,yum安装的话,路径为:/usr/sbin/rotatelogs改为:ErrorLog "|/usr/sbin/rotatelogs /home/logs/www/%Y_%m_%d_error_log 86400 480"CustomLog "|/usr/sbin/rotatelogs /home/logs/www/%Y_%m_%d_access_log 86400 480" common这样才可以的。centos下 Apache、php、mys 阅读全文
posted @ 2013-03-25 17:41 awinlei 阅读(3989) 评论(0) 推荐(1) 编辑
摘要: http://www.zen-cart.cn/forum/topic432-20.html#p26340http://www.zen-cart.cn/forum/topic6914.html文件路径 注释index.php 主文件includes/templates/[custom template folder]/common/html_header.php 页面的head部分includes/templates/[custom template folder]/common/tpl_main_page.php 页面的body部分includes/templates/[custom temp 阅读全文
posted @ 2013-03-15 17:41 awinlei 阅读(221) 评论(0) 推荐(0) 编辑
摘要: http://barrelfish.blog.163.com/blog/static/130650826201010204911893/MySQL默认的数据文件存储目录为/var/lib/mysql。假如要把目录移到/home/data下需要进行下面几步:1、home目录下建立data目录cd /homemkdir data2、把MySQL服务进程停掉:mysqladmin -u root -p shutdown3、把/var/lib/mysql整个目录移到/home/datamv /var/lib/mysql /home/data/这样就把MySQL的数据文件移动到了/home/data/m 阅读全文
posted @ 2013-03-14 09:44 awinlei 阅读(14839) 评论(0) 推荐(0) 编辑
摘要: 问题:zencart Strict standards: Only variables should be assigned by reference in jscript_zen_magiczoomplus.php将符号&去掉就可以了http://stackoverflow.com/questions/11777908/strict-standards-only-variables-should-be-assigned-by-reference-php-5-4看手册第15章:引用是什么在PHP中引用意味着用不同的名字访问同一个变量内容。这并不像C的指针,它们是符号表别名。注意在PHP 阅读全文
posted @ 2013-03-13 10:02 awinlei 阅读(7654) 评论(0) 推荐(1) 编辑
摘要: http://tenaiweb.com/?p=12232首先,zencart的缓存指的是SQL数据库缓存,就是zencart读取数据库时,可以保存部分查询结果,一定程度上减少对数据库的查询次数。zencart的SQL缓存设置有三个选项: none, database 和 file前台的数据库缓存,在 includesconfigure.php 文件中设置;后台的数据库缓存,在 adminincludesconfigure.php 文件中设置;需要修改以下两个参数:?12define('SQL_CACHE_METHOD', 'none'); define(' 阅读全文
posted @ 2013-03-13 09:47 awinlei 阅读(1158) 评论(1) 推荐(0) 编辑
摘要: <?php/** * Very simple error logging to file * * Sometimes it is difficult to debug PHP background activities * However, using the PHP error logging facility we can store all PHP errors to a file, and then review separately. * Using this method, the debug details are stored at: /cache/myDEBUG-999 阅读全文
posted @ 2013-03-12 17:07 awinlei 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: ## This is the main Apache server configuration file. It contains the# configuration directives that give the server its instructions.# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.# In particular, see# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html># f 阅读全文
posted @ 2013-03-12 17:05 awinlei 阅读(311) 评论(0) 推荐(0) 编辑