摘要: 默认情况下,VS2010中新建的WebApplication中是没有App_Code文件夹的,若需要使用,可以自己手动添加文件夹,然后将文件夹名称设置为App_Code,然后在该文件夹添加需要的类即可,但有一点需要注意的就是,右键点击文件夹下的类,选择“属性”,然后将“生成活动“的值改为”编译“,即 阅读全文
posted @ 2016-03-16 15:26 思如雨 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 打开:工具-->选项 搜索:剪切行   移除原有的 Crtl+L 命令 改为:Ctrl+D 阅读全文
posted @ 2016-03-15 11:30 思如雨 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 默认字体为16px,有点大,为了美观而且一屏可以显示更多内容,可以修改为12px 打开:ueditor.all.min.js 我用的是压缩版 找到如下代码: body{margin:8px;font-family:sans-serif;font-size:12px;}p{margin:5px 0;} 阅读全文
posted @ 2016-02-15 14:23 思如雨 阅读(2830) 评论(0) 推荐(0) 编辑
摘要: <textarea name="txtbody" style="width:100%;height:320px;" > {$article.txt} </textarea> <script charset="utf-8" src="__STATIC__/kindeditor/kindeditor.j 阅读全文
posted @ 2016-02-15 10:57 思如雨 阅读(290) 评论(0) 推荐(0) 编辑
摘要: thinkphp3.2 3.2中取消了配置文件中的 'TMPL_STRIP_SPACE' 属性,所以我们先来修改:\ThinkPHP\Library\Think\Template.class.php 文件 找到compiler方法: /** * 编译模板文件内容 * @access protecte 阅读全文
posted @ 2016-02-14 14:18 思如雨 阅读(4305) 评论(0) 推荐(1) 编辑
摘要: #nginx日志切割脚本 #!/bin/bash #设置日志文件存放目录 logs_path="/home/www.xxx.com/wwwlogs/" #设置pid文件 pid_path="/usr/local/nginx/nginx.pid" #重命名日志文件 mv ${logs_path}hos 阅读全文
posted @ 2016-02-14 11:59 思如雨 阅读(6124) 评论(0) 推荐(0) 编辑
摘要: 阿里云的云服务器(ECS)可以选择多种操作系统,打算用它运行 Drupal 或者 WordPress ,你最好选择 Linux 系统,这篇文章的演示是基于阿里云的 CentOS 操作系统的服务器。我们在上面搭建一个 nginx + mysql + php-fpm 的环境,这就是常说的 LNMP 。我 阅读全文
posted @ 2016-02-12 22:02 思如雨 阅读(544) 评论(0) 推荐(0) 编辑
摘要: x:\>mysql -u root -pvmware mysql> use mysql; mysql> update user set host = ‘%’ where user = ‘root’; mysql> select host, user from user; mysql> flush p 阅读全文
posted @ 2016-02-12 22:01 思如雨 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 打开php配置文件 php.ini 使用搜索命令 whereis php.ini 一般在:/etc/php.ini 目录下 使用vim命令打开 找到: session.save_path 找到php保持session文件的目录。 如果目录不存在则创建 使用chmod授予777权限。 阅读全文
posted @ 2016-02-12 21:59 思如雨 阅读(1403) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; root "E:/phpStudy/WWW"; location / { index index.ht 阅读全文
posted @ 2016-02-11 16:20 思如雨 阅读(3826) 评论(0) 推荐(0) 编辑