上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: 一、获取ThinkPHP:ThinkPHP官网:http://www.thinkphp.cn二、ThinkPHP文件结构说明:|——ThinkPHP.php框架入口文件|——Common框架公共文件目录|——Conf 框架配置文件目录 |——Extend框架扩展目录|——Lang 核心语言包目录|——Lib 核心库目录||——Behavior 核心行为类库||——Core 核心基类库||——Driver内置驱动|||——Cache 内置缓存驱动|||——Db 内置数据库驱动|||——TagLib 内置标签驱动|||——Template 内置模板引擎驱动||——Template 内置模板引擎.. 阅读全文
posted @ 2013-03-20 16:45 忆殇之痕 阅读(336) 评论(0) 推荐(0) 编辑
摘要: //从CSV导入数据库echo '<pre>';$file=fopen($C->STATIC_URL.'images/123.csv','r');global $i;$i=1;while($data=fgetcsv($file)) { //每次读取CSV里面的一行内容 $this->dbm->query("insert into applist(id,url,name,zname,client,picname) values('','$data[1]','$data[ 阅读全文
posted @ 2013-03-19 22:55 忆殇之痕 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1、在php配置文件中开启CURL功能:extension=php_curl.dll1、初始化curl:$curl=curl_init();2、设置需要访问的地址:curl_setopt($curl,CURLOPT_URL,"http://www.php100.com");//以上2步可以合并为:$curl=curl_init(http://www.baidu.com);3、要求结果保存到字符串中还是输出到屏幕上(0输出到屏幕上,1不返回)curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);4、运行curl,请求网页$data=curl_ 阅读全文
posted @ 2013-03-19 22:52 忆殇之痕 阅读(156) 评论(0) 推荐(0) 编辑
摘要: //连接数据库$conn=@mysql_connect("localhost","root","") or die ("连接错误");//连接数据库mysql_select_db("newdb",$conn); //选择数据库mysql_set_charset ("utf8") //设置字符集mysql_query($sql,$conn); //执行sql语句while($row=mysql_fetch_object($result)){ //遍历数据echo$row-> 阅读全文
posted @ 2013-03-19 16:22 忆殇之痕 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 一、创建shell脚本 touch test //shell脚本不需要任何后缀名二、编写shell脚本 #!/bin/sh echo '这是一个sh脚本';三、运行shell脚本 ./test第二种方式为了区分shell脚本 一般采用.sh命名脚本名:test.sh运行脚本 sh test.sh 阅读全文
posted @ 2013-03-19 14:13 忆殇之痕 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 一、mysql的启动、停止和重启 /etc/init.d/mysql start /etc/init.d/mysql stop /etc/init.d/mysql restart二、进入mysql mysql -u root -p三、mysql基本命令使用//查询所有数据库show databases;//进入数据库use xxx;//查看所有表show tables;//增、删、改、查//暂时略过//查询内容存为文件 into outfileselect * FROM TABLENAME INTO outfile 'TEST.TXT' //将查询的字段存储到另一张表" 阅读全文
posted @ 2013-03-19 11:26 忆殇之痕 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 一、运行php文件 php5 /var/www/dsa.php二、apache的启动、结束、重启 /etc/init.d/apache2 start /etc/init.d/apache2 stop /etc/init.d/apache2 restart 阅读全文
posted @ 2013-03-19 11:20 忆殇之痕 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 一、启动与停止 ubuntu下启动、停止与重启cron sudo /etc/init.d/cron start sudo /etc/init.d/cron stop sudo /etc/init.d/cron restart二、查看cron是否在运行 pgrep cron三、crontab命令主要有3个参数-e :编辑用户的crontab。-l :列出用户的crontab的内容。-r :删除用户的crontab的内容。* * * * * 分 时 日 月 年四、完整操作crontab -e* * * * * /var/www/dsa.php >> /var/www/cron.txt 阅读全文
posted @ 2013-03-19 11:05 忆殇之痕 阅读(187) 评论(0) 推荐(0) 编辑
摘要: http://www.iiwnet.com/php_base/626.htmljqueryajax简便使用方法get方法:$.get($url,{uid:123456789,v:100},function(data){alert(data);},"json");post方法:$.post($url,{uid:123456789,v:100},function(data){alert(data);},"json");//技巧:my_data=escape(my_data)+"";//编码,防止汉字乱码 阅读全文
posted @ 2013-03-19 10:12 忆殇之痕 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1、DTD声明: <!doctype html>2、布局标签 <html> <head></head> <body> //头部标签 <header> <nav>导航栏标签</nav> </header> <div> //自定义主区间 <section> <ruby>夼<rp>(</rp><rt>kuang</rt><rp>)</rp></ruby> //效果:夼(kua 阅读全文
posted @ 2013-03-19 09:55 忆殇之痕 阅读(357) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页