2017年6月19日
摘要: 首先我们来认识下RESTful Restful是一种设计风格而不是标准,比如一个接口原本是这样的: http://www.test.com/user/view/id/1 表示获取id为1的用户信息,如果使用Restful风格,可以变成这样: http://www.test.com/user/1 可以 阅读全文
posted @ 2017-06-19 16:35 vsmart 阅读(268) 评论(0) 推荐(0) 编辑
摘要: header('Content-Type:text/html;charset=utf-8');$conn=mysql_connect("localhost","root","") or die ("连接失败:".mysql_error()); mysql_select_db("dbname",$co 阅读全文
posted @ 2017-06-19 15:39 vsmart 阅读(114) 评论(0) 推荐(0) 编辑
摘要: <?phpheader('Content-Type:text/html;charset=utf-8'); if (is_uploaded_file($_FILES['upfile']['tmp_name'])) { $upfile = $_FILES['upfile']; $name = $upfi 阅读全文
posted @ 2017-06-19 15:29 vsmart 阅读(155) 评论(0) 推荐(0) 编辑
摘要: <?php//ob_start();header('Content-Type:text/html;charset=utf-8');date_default_timezone_set("Asia/Shanghai"); if (!empty($_COOKIE["lastVisit"])) { echo 阅读全文
posted @ 2017-06-19 11:26 vsmart 阅读(236) 评论(0) 推荐(0) 编辑