Loading [MathJax]/jax/element/mml/optable/BasicLatin.js

08 2015 档案

摘要:1.首先安装php-apcsudo apt-get install php-pear php5-dev apache2-threaded-devsudo pecl install apc-3.1.72.再在magento /app/etc/local.xml中 ... 阅读全文
posted @ 2015-08-29 14:47 Forward1990 阅读(231) 评论(0) 推荐(0) 编辑
摘要:用editplus打开,选择utf-8保存,之前试过记事本保存编码的,但是不起作用 阅读全文
posted @ 2015-08-27 16:58 Forward1990 阅读(195) 评论(0) 推荐(0) 编辑
摘要:app\code\core\Mage\Dataflow\Model\Convert\Parser\csv.php文件是后台上传csv,插入到dataflow_batch_import中转表的代码,有如下代码片段1.batchModel=this->getBatchModel();2.$bat... 阅读全文
posted @ 2015-08-27 14:19 Forward1990 阅读(283) 评论(0) 推荐(0) 编辑
摘要:最近上新产品,发现上新后前台sku都没有对应的属性,去后台看都是有属性的,而且后台点击保存后前台就会显示了,最后发现是上新表格中options_container这列Product Info Column中间有两个空格,估计是使用tab键造成的原因,把它恢复成一个空格保存就好了 阅读全文
posted @ 2015-08-26 11:20 Forward1990 阅读(315) 评论(0) 推荐(0) 编辑
摘要:gd库要开启Crop(480,600,1); ic>SaveImage();//ic->SaveAlpha();将补白变成透明像素保存 $ic->destory(); class ImageCrop{ var sImage;vardImage; va... 阅读全文
posted @ 2015-08-21 17:28 Forward1990 阅读(234) 评论(0) 推荐(0) 编辑
摘要:select sales_flat_order.entity_idfrom sales_flat_orderwhere not exists (select 1from download_tracknumberwhere download_tracknumber.id = sales_flat_or... 阅读全文
posted @ 2015-08-20 15:38 Forward1990 阅读(202) 评论(0) 推荐(0) 编辑
摘要:在/etc/hosts.allow输入(其中192.110.162.6是你要允许登陆ssh的ip,或者是一个网段192.110.162.0/24 表示192.110.162.1到192.110.162.255)sshd:192.110.162.6:allow在/etc/hosts.deny输入(表示... 阅读全文
posted @ 2015-08-19 16:21 Forward1990 阅读(171) 评论(0) 推荐(0) 编辑
摘要:who 阅读全文
posted @ 2015-08-19 11:25 Forward1990 阅读(3567) 评论(0) 推荐(0) 编辑
摘要:1,使用who命令查看当前登录状况。如图所示,通过who命令可以查看到当前用户及ip的登录情况。2,使用last命令查看最近登录情况。如图所示,last命令列出最近一段时间的用户登录时间及ip记录。3,使用lastlog命令查看各个用户登录情况如图所示,lastlog命令列出了各个用户的登录情况,如... 阅读全文
posted @ 2015-08-18 16:29 Forward1990 阅读(3349) 评论(0) 推荐(0) 编辑
摘要:cat 路径/access.log |cut -d ' ' -f 1 |sort |uniq -c | sort -nr | awk '{print $0 }' | head -n 10 阅读全文
posted @ 2015-08-18 09:46 Forward1990 阅读(824) 评论(0) 推荐(0) 编辑
摘要:有以下这些表记录日志,长期不清理会非常大'log_customer', 'log_quote', 'log_summary', 'log_summary_type... 阅读全文
posted @ 2015-08-17 15:44 Forward1990 阅读(325) 评论(0) 推荐(0) 编辑
摘要:今天magento后台登陆突然报General error: 2006 MySQL server has gone away错误上网查了是把my.cnf中的max_allowed_packet参数调大默认是16M改为80Mhttp://dev.mysql.com/doc/refman/5.1/en/... 阅读全文
posted @ 2015-08-15 17:33 Forward1990 阅读(183) 评论(0) 推荐(0) 编辑
摘要:最近网站经常报锁表的错误,系统用的是magento,innodb表,在事物在更新或插入后没有执行commit操作,并且超过了设置的最大等待时间(默认innodb_lock_wait_timeout=50),一旦超过就会报mysql 1205 lock wait timeout exceeded在网上... 阅读全文
posted @ 2015-08-15 17:08 Forward1990 阅读(1625) 评论(0) 推荐(0) 编辑
摘要:mysql在phpmyadmin执行时间长会出现504打开php.ini发现mysql.connect_timeout = 60说明超过60s就会出现超时问题 阅读全文
posted @ 2015-08-15 11:05 Forward1990 阅读(813) 评论(0) 推荐(0) 编辑
摘要:动态变量可以在MySQL命令行里面设置:set global max_connections = 768;默认情况是100个 阅读全文
posted @ 2015-08-15 11:02 Forward1990 阅读(272) 评论(0) 推荐(0) 编辑
摘要:记事本中有些换行看不出来,导致复制到excel表格中时,会造成换行解决办法是将.txt文件改成.htm文件,再将.htm文件的内容复制过来 阅读全文
posted @ 2015-08-13 15:17 Forward1990 阅读(431) 评论(0) 推荐(0) 编辑
摘要:数据库中保存的数据有换行符,真是烦人,用phpcontent=str_replace("\n","",description);替换换行,解决了问题 阅读全文
posted @ 2015-08-13 15:16 Forward1990 阅读(227) 评论(0) 推荐(0) 编辑
摘要:format字符说明返回值例子日------d月份中的第几天,有前导零的 2 位数字01到31D星期中的第几天,文本表示,3 个字母Mon到Sunj月份中的第几天,没有前导零1到31l(“L”的小写字母)星期几,完整的文本格式Sunday到SaturdayNISO-8601 格式数字表示的星期中的第... 阅读全文
posted @ 2015-08-12 17:54 Forward1990 阅读(369) 评论(0) 推荐(0) 编辑
摘要:SELECTTABLE_SCHEMA,TABLE_NAMEFROMCOLUMNSWHERECOLUMN_NAMELIKE'%字段名%' 阅读全文
posted @ 2015-08-12 17:52 Forward1990 阅读(876) 评论(0) 推荐(0) 编辑
摘要:objPHPExcel = new PHPExcel();默认一个sheetobjPHPExcel->getProperties()->setCreator("test") ->setLastModifiedBy("test") ... 阅读全文
posted @ 2015-08-11 09:09 Forward1990 阅读(824) 评论(0) 推荐(0) 编辑
摘要:最近做报表需要用到按天分类的信息,但是数据库字段是有时分秒的,使用distinct函数不能区分出出现的天数使用DATE_FORMAT函数即可解决SELECTDISTINCT(DATE_FORMAT(`magento_created_at`,'%y-%m-%d'))FROM`wanelo_produc... 阅读全文
posted @ 2015-08-08 15:39 Forward1990 阅读(6349) 评论(1) 推荐(0) 编辑
摘要:原因是magento后台保存,是通过form表单提交信息,并且就算你只保存一条记录,他也会把此分类下的所有产品重新保存一遍,但是php默认接受form表单的信息是1000修改max_input_vars = 5000重启服务即可 阅读全文
posted @ 2015-08-07 16:02 Forward1990 阅读(212) 评论(0) 推荐(0) 编辑
摘要:mysql多表关联查询报错Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf16_general_ci,IMPLICIT) for operation '查了这两张表都是utf-8格式的,为什么还是不能查询,后来发现字段里的排序... 阅读全文
posted @ 2015-08-03 13:41 Forward1990 阅读(410) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示