摘要:
1.初始化2.设置变量3.执行并获取结果4.释放cURL句柄// 1. 初始化$ch = curl_init();// 2. 设置选项,包括URLcurl_setopt($ch, CURLOPT_URL, "http://www.nettuts.com");curl_setopt($ch, CURL... 阅读全文
摘要:
将配置文件中改:'配置值' 'URL_MODEL'=>'2', //去掉url中index.php 'MODULE_ALLOW_LIST' => array('Home','Admin','User'), //可访问模块 'DEFAULT_MODULE' => 'Home', //默认模块); 阅读全文
摘要:
$('body').on('click','.edit', function() { var id = $(this).parent().attr('id'); var status = $(".usercontent").attr('status'); if(status == 1... 阅读全文
摘要:
ecshop在在PHP5.6.6版本以后,有了很多细微的变化。而ECSHOP官方更新又太慢,发现这些问题后也不及时升级,导致用户安装使用过程中错误百出。整理一下我遇到的问题希望对你们能有些帮组也为了自己以后查看。问题1: Deprecated: preg_replace(): The /e mo... 阅读全文
摘要:
// database host$db_host = "w.rdc.sae.sina.com.cn:3307";// database name$db_name = "app_(+你的应用名)";// database username$db_user = ""; //Access Key// da... 阅读全文
摘要:
在php5.4版本之后有很多的函数与功能进行丢弃与升级功能了,现在国内很多CMS都还未按php5.4标准来做了,下面我整理了一些在ecshop在PHP 5.4以上版本各种错误问题处理.1、PHP 5.4.X环境下安装ECShop出现“includes/cls_template.php o... 阅读全文
摘要:
字符串转数组$str = 'one|two|three|four';print_r(explode('|', $str)); //explode 以字符串分割字符串到数组$str = 'one two three'; //str_split 以位数分割$arr1 = str_spli... 阅读全文
摘要:
var tag = []; $('.deltag').each(function(){ if($(this).attr("checked")== 'checked'){ tag.push($(this).attr('value'));... 阅读全文
摘要:
document.activeElement 方法:if(document.activeElement.id="textbox1") { } 阅读全文
摘要:
1.提交序列化表单+参数: var a = $.param({'address':address,'delivity':delivity,'payment':payment}) + '&' + $('#card_form').serialize();2.提交多个序列化表单: var form1 ... 阅读全文