08 2016 档案

摘要:1、下载安装; 2、拷贝libs文件夹到web文件夹; 3、引入smarty类文件 // include './libs/Smarty.class.php'; 4、配置smarty //a、配置模板文件 $smarty -> setTemplateDir("./mb/") ; //b、配置编译后的文 阅读全文
posted @ 2016-08-31 10:58 CoKeny 阅读(135) 评论(0) 推荐(0)
摘要:1 2 3 4 首先要有3个文件夹configs、templates、templates_c,在configs文件夹中有一个配置文件:test.conf,代码: title = Welcome to Smarty! cutoff_size = 40 [setup] bold = true title 阅读全文
posted @ 2016-08-31 09:48 CoKeny 阅读(133) 评论(0) 推荐(0)
摘要:<?php //首先采用“fopen”函数打开文件,得到返回值的就是资源类型。$file_handle = fopen("/data/webroot/resource/php/f.txt","r");if ($file_handle){ //接着采用while循环(后面语言结构语句中的循环结构会详细 阅读全文
posted @ 2016-08-25 20:46 CoKeny 阅读(2581) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-08-25 19:41 CoKeny 阅读(143) 评论(0) 推荐(0)
摘要:MySQL常用命令汇总 你吧 Mysql常用命令 show databases; 显示数据库 create database name; 创建数据库 use databasename; 选择数据库 drop database name 直接删除数据库,不提醒 show tables; 显示表 des 阅读全文
posted @ 2016-08-06 16:58 CoKeny 阅读(2824) 评论(0) 推荐(0)