摘要: 我是下载的微博最新的API练习了一下认证过程。 阅读全文
posted @ 2015-06-29 16:27 GreyWolf 阅读(150) 评论(0) 推荐(0) 编辑
摘要: mysql结构如下:-- phpMyAdmin SQL Dump-- version 4.4.1.1-- http://www.phpmyadmin.net---- Host: localhost:8889-- Generation Time: 2015-06-23 16:40:20-- 服务器版本... 阅读全文
posted @ 2015-06-23 16:48 GreyWolf 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 一、数据库函数:mysql_connect(数据库地址,用户名,密码)mysql_select_db(数据库名)mysql_set_chartset(‘编码’) //PHP5.2.3以后的函数mysql_query(“set names 'gbk'”)函数:mysql_query(SQL语句或命令)... 阅读全文
posted @ 2015-06-19 18:00 GreyWolf 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 一、工具:1、phpMyAdmin (http://www.phpmyadmin.net/)2、Navicat (http://www.navicat.com/) 3、MySQL GUI Tools (http://dev.mysql.com/downloads/gui-tools/)二、语法:数... 阅读全文
posted @ 2015-06-19 17:53 GreyWolf 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1、filetype():输出文件类型;2、stat():获取文件的基本属性的数组;3、clearstatcache()、is_executable()、isDir()、idFile()、scandir()4、fopen(filename,mode)//打开文件,模式:r、r+、w、w+、a、a+5... 阅读全文
posted @ 2015-06-19 11:28 GreyWolf 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 一、数组①Array(“aa”,12,true,2.2,”test”,50);②Array(“title”=>“aa”, ”age”=>20);1.创建:$arr= array(11,22,33,44……);$arr= array(‘a’=>’11’,’b’=>’22’);2.修改$arr = ar... 阅读全文
posted @ 2015-06-19 11:09 GreyWolf 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 一、while/for/break/continue:while (expr){statements} for (expr1;expr2;expr3){statement}break n 跳出循环或条件后将结束该循环体的操作continue 跳出循环或条件后将继续该循环体的操作二、系统函数和自定义... 阅读全文
posted @ 2015-06-19 10:34 GreyWolf 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 一、运算符:1、算数运算符:+、-、*、/、%、++、--2、字符串运算符:3、赋值运算符:①=、②+=、③-=、④*=、⑤/=、⑥%=、⑦.=4、位运算符:&、|、~、^、>5、比较运算符:>、=、、===、!==6、逻辑运算符:AND、OR、XOR、&&、||、!二、流程控制:1、if(){}、... 阅读全文
posted @ 2015-06-19 09:16 GreyWolf 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 打开终端重启apache:sudo /usr/sbin/apachectl restart关闭apache:sudo /usr/sbin/apachectl stop开启apache:sudo /usr/sbin/apachectl start 阅读全文
posted @ 2015-06-16 11:39 GreyWolf 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 取消:sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist添加:sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.htt... 阅读全文
posted @ 2015-06-15 08:23 GreyWolf 阅读(275) 评论(0) 推荐(0) 编辑