摘要: //截取//时间戳转日期//根据image_id获取图片//小图//大图//中图 //原图//数组拆分为字符串//array('a','b')====a,b//打印//金额//(四舍五入,保留2位)¥12.78 //直接显示html//默认值//地区//替换//w换成a//数字取整//去除商品名称的标签//插入换行符//数组长度//左边移动n个字符,并用-代替//以下为未验证的//商品规格PS... 阅读全文
posted @ 2018-10-11 14:59 limonyun 阅读(515) 评论(0) 推荐(0) 编辑
摘要: error_log("tuikuan_sdf>>>>>>".var_export($sdf,1),3,DATA_DIR.'/callback.txt'); 阅读全文
posted @ 2018-10-09 08:57 limonyun 阅读(108) 评论(0) 推荐(0) 编辑
摘要: <{$detail['indexs']['title']|cut:30}> 阅读全文
posted @ 2018-09-17 18:58 limonyun 阅读(87) 评论(0) 推荐(0) 编辑
摘要: PHP5.5以下: $key_arrays[]='排序字段'; $coupons_list=array('1','2','3');//排序数组 foreach ($coupons_list as $cou) { $key_arrays[]=$cou['to_time']; } //即将结束 array_multiso... 阅读全文
posted @ 2018-09-17 09:06 limonyun 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-08-06 13:45 limonyun 阅读(134) 评论(0) 推荐(0) 编辑
摘要: //导入public function textImp(){ //框架上传文件 $upload = new \Think\Upload(); $upload->maxSize = 3145728; $upload->exts = array('xlsx'); $upload->rootPath = './Public/uploads/'; ... 阅读全文
posted @ 2018-07-30 15:34 limonyun 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库。 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的 状态下,其他的用户也可以任意地登录和修改MySQL的信息。可以采用将MySQL对 外的端口封闭,并且停止Apache以及所有的用户进程 阅读全文
posted @ 2018-07-19 11:32 limonyun 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 当我们使用PHP将采集到的文件内容保存到csv文件时,往往需要将采集内容进行二次过滤处理才能得到需要的内容。比如网页中的换行符,空格符等等。 对于空格等处理起来都比较简单,这里我们单独说说换行符的处理。 换行符在html中一般有3种写法: 那么当我们知道原始需要处理的目标后,下一步自然就是要着手处理 阅读全文
posted @ 2018-07-17 17:15 limonyun 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 1、在finder文件夹下建立goods文件夹,再建立error.php 2、在services.xml加上 <service id="desktop_finder.b2c_mdl_goods_error"> <class>b2c_finder_goods_error</class> </servi 阅读全文
posted @ 2018-07-12 18:09 limonyun 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 优惠券:\custom\b2c\controller\admin\sales\coupon.php 新增starbuy_weight_radio方法 以下为整个代码: <?phpfunction theme_widget_employee_choice(&$setting, &$smarty){ f 阅读全文
posted @ 2018-06-08 15:45 limonyun 阅读(279) 评论(0) 推荐(0) 编辑