该文被密码保护。 阅读全文
posted @ 2014-07-02 16:23 Crawford 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Java Cookie cookie = new Cookie(COOKIE_NAME, encrypt_cookieV); cookie.setMaxAge(60 * 60); cookie.setPath("/"); response.addCookie(cookie);PHP setcoo... 阅读全文
posted @ 2014-07-02 16:04 Crawford 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-07-02 15:32 Crawford 阅读(164) 评论(0) 推荐(0) 编辑
摘要: PHP 输出json。 $result = mysql_query($sql); //查询结果 $users=array(); $i=0; while($row=mysql_fetch_array($result,MYSQL_ASSOC)){ $users[$i]=$row; $i+... 阅读全文
posted @ 2014-07-02 15:26 Crawford 阅读(865) 评论(0) 推荐(0) 编辑
摘要: db.class.php 主要方法host = $host; $this->username = $username; $this->password = $password; $this->db_name = $db_name; } /** ... 阅读全文
posted @ 2014-07-02 15:05 Crawford 阅读(881) 评论(0) 推荐(0) 编辑
摘要: host = $host; $this->username = $username; $this->password = $password; $this->dbname = $dbname; } public function open() ... 阅读全文
posted @ 2014-07-02 14:55 Crawford 阅读(263) 评论(0) 推荐(0) 编辑