摘要: <?php session_start(); include("conn/conn.php");?> <?php //Pick out information from database and print out. $type = $_GET['type']; $q_word="select id ,attr_type,pic_url,pic_desc from projectinfo where attr_type='".$type."' order by attr_type"; 阅读全文
posted @ 2012-07-01 11:55 sfshine 阅读(612) 评论(0) 推荐(0) 编辑
摘要: public static void getImg(String urlPath , String savePath) throws Exception {//获取图片 URL url = new URL(urlPath); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setConnectTimeout(6*1000); // 注意要设置超时,设置时间不要超过10秒,避免被android系统回收 if (conn... 阅读全文
posted @ 2012-07-01 09:00 sfshine 阅读(313) 评论(0) 推荐(0) 编辑