摘要:
OverviewHere I want to summarize Amazon marketplace web service (MWS or AMWS) that can be used for e-commerce data integration. It is based on Amazon ... 阅读全文
摘要:
session_start();var_dump($_SESSION);$key = sprintf('%05d', mt_rand(0, 99999));$key = strval($key);$val = time();$_SESSION[$key] = $val;这是我的代码,经测试后大部分情... 阅读全文
摘要:
打开phpmyadmin一直是空白的,发现是js的问题,原因是pma的js/get_script_js.php读取js不完整很容易的将问题原因想到了php的输出缓存大小上,我把php.ini里的output_buffering调整为102400还是不行后来我就去查找php-fpm的日志,没有找到问题... 阅读全文
摘要:
1 require_once WEB_PATH . '/lib/PHPExcel/PHPExcel.php'; 2 require_once WEB_PATH . '/lib/PHPExcel/PHPExcel/IOFactory.php'; 3 4 class ExcelExport{ 5 public static function export($orderList){ 6 $columnArr = array('A'=>20, 'B'=>20, 'C'=>'auto', & 阅读全文
摘要:
介绍几个我用到的php正则表达式1. 一篇文章的链接,我需要去掉以 /hotels/打头的链接,可用下面正则$content = preg_replace('/(.*?)/is', '\\4', $content);2. 一篇文章的链接,我需要把 /attractions/aaa/bbb.html 替换为 /attractions/bbb.html,可用下面正则$content = preg_replace('/href="\/attractions\/([^\/]+)\/(.*?)\.html"/is', 'href 阅读全文
摘要:
在http://www.modoer.org/beijing/item/list-8的页面中,会执行以下2个sqlSELECT s.sid,pid,catid,domain,name,avgsort,sort1,sort2,sort3,sort4,sort5,sort6,sort7,sort8,best,finer,pageviews,reviews,pictures,favorites,thumb,aid,map_lat,map_lng,c_tel,c_dz FROM modoer_subject s LEFT JOIN modoer_subject_shishang sf ON (s.si 阅读全文