摘要: echo $temp_chat_query->createCommand()->getRawSql(); 阅读全文
posted @ 2015-11-18 14:30 梁小粽 阅读(2421) 评论(0) 推荐(0) 编辑
摘要: php -S localhost:90 -t /项目目录 阅读全文
posted @ 2015-09-28 15:24 梁小粽 阅读(163) 评论(0) 推荐(0) 编辑
摘要: /*public function copyfile($str,$pre){ copy('test.php','array.php'); $arrInsert = insertfile("array.php", $str, 3, 0); unlink("array.php"); ... 阅读全文
posted @ 2015-09-09 10:33 梁小粽 阅读(206) 评论(0) 推荐(0) 编辑
摘要: public function actionShowfile(){ header("Content-type:text/html;charset=utf-8"); $file_name="test.php"; //用以解决中文不能显示出来的问题 $file_name=icon... 阅读全文
posted @ 2015-09-09 09:32 梁小粽 阅读(196) 评论(0) 推荐(0) 编辑
摘要: class SiteController extends Controller{ /** * @inheritdoc */ public function behaviors() { return [ 'access' => [ ... 阅读全文
posted @ 2015-08-26 18:42 梁小粽 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 在main.php中添加'defaultRoute'=>'site/login',//默认路由,控制显示的第一个页面,控制器+方法 阅读全文
posted @ 2015-08-26 14:34 梁小粽 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1.开启apache-rewrite在Windows下,我们一般使用的是Administrator账号,所以启用这两项非常简单:在[Apache安装目录]/conf/httpd.conf中找到#LoadModule rewrite_module modules/mod_rewrite.so,去掉前面... 阅读全文
posted @ 2015-08-26 14:32 梁小粽 阅读(2912) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-08-13 13:41 梁小粽 阅读(1587) 评论(0) 推荐(0) 编辑
摘要: $msg = $_GET['msg'];$startDate = $_POST['startDate'];$endDate = $_POST['endDate'];$quickdate = $_POST['quickdate'];$index = $_POST['ind... 阅读全文
posted @ 2015-08-13 13:40 梁小粽 阅读(259) 评论(0) 推荐(0) 编辑
摘要: function db_create_login_line_xml($startDate, $endDate, $path, $beginRow = "", $endRow = "") { global $languagesArray; $xml = new DOMDocument('1.... 阅读全文
posted @ 2015-08-13 13:12 梁小粽 阅读(167) 评论(0) 推荐(0) 编辑