会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Caps's notebook
梳理下知识体系,记录技术的演进,尽可能简单的写技术
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
2013年2月27日
mysql 1366 插入错误
摘要: 出现1366报错,是中文字符串识别错误 设置当前连接的字符集即可 set character set 'GBK'; 一般mysql中默认字符集包含: 创建数据库时的字符集 可设定否则为默认 my.ini设置 选定数据库时的字符集 可设定 创建表时的字符集 可设定 设置字段时的字符集 可设定 一般需保
阅读全文
posted @ 2013-02-27 12:26 Caps
阅读(223)
评论(0)
推荐(0)
2013年2月26日
smarty2 设置、变量、函数
摘要: 设置 View Code <?php require './libs/Smarty.class.php'; $smarty = new Smarty; $smarty->template_dir = './templates';//模板目录 $smarty->compile_dir = './tem
阅读全文
posted @ 2013-02-26 23:07 Caps
阅读(178)
评论(0)
推荐(0)
简单模板类
摘要: MyMiniSmarty.class.php View Code 1 <?php 2 /** 3 * 模板类 4 * 1、读取模板文件 5 * 2、把模板文件替换成可以运行的php文件 6 * 3、包含缓存机制--文件 7 */ 8 9 class MyMiniSmarty { 10 //var 为
阅读全文
posted @ 2013-02-26 20:44 Caps
阅读(204)
评论(0)
推荐(0)
windows pear 安装
摘要: 环境:php5.3 apache2.2 下载http://pear.php.net/go-pear.phar go-pear.phar,放入php目录 此目录运行命令行 php.exe go-pear.phar 依次设置完成安装
阅读全文
posted @ 2013-02-26 17:09 Caps
阅读(174)
评论(0)
推荐(0)
上一页
1
2
3
4
5
公告