摘要:
在Thinkphp目录的Lib\ORG\Util\目录里新建AjaxPage.class.php,写入一下内容://+----------------------------------------------------------------------//$Id:Page.class.php2... 阅读全文
摘要:
<?phpclassMcrypt{/***解密**@paramstring$encryptedText已加密字符串*@paramstring$key密钥*@returnstring*/publicstaticfunction_decrypt($encryptedText,$key=null){$ke... 阅读全文
摘要:
html{filter:fliph}body{-webkit-transform:rotateY(180deg);-moz-transform:skew(0deg,180deg)scale(-1,1);-o-transform:skew(0deg,180deg)scale(-1,1);transfo... 阅读全文
摘要:
config.phpcron.phpignore_user_abort();//关掉浏览器,PHP脚本也可以继续执行.set_time_limit(0);//通过set_time_limit(0)可以让程序无限制的执行下去$interval=60*30;//每隔半小时运行do{$run=includ... 阅读全文
摘要:
functiongbk_to_utf8($str){returnmb_convert_encoding($str,'utf-8','gbk');}functionutf8_to_gbk($str){returnmb_convert_encoding($str,'gbk','utf-8');} 阅读全文
摘要:
functionarray_to_json($array){if(!is_array($array)){returnfalse;}$associative=count(array_diff(array_keys($array),array_keys(array_keys($array))));if(... 阅读全文
摘要:
array('id'=>1,'pid'=>0,'name'=>'江西省'),2=>array('id'=>2,'pid'=>0,'name'=>'黑龙江省'),3=>array('id'=>3,'pid'=>1,'name'=>'南昌市'),4=>array('id'=>4,'pid'=>2 阅读全文
摘要:
Laravel4和Laravel5的邮件发送使用方式完全一致。Laravel5的邮件发送中文文档在:http://laravel-china.org/docs/5.0/mail本文中,我将以163邮箱为例,展示如何用Laravel内置的邮件发送类来发送邮件。配置修改邮件发送配置。4.2在app/co... 阅读全文