2012年6月8日
摘要: function get_sina_short_url($long_url){ $array=array('source'=>'2218378459','url_long'=>$long_url); $api_url='http://api.t.sina.com.cn/short_url/shorten.json'; $reqPar=''; foreach ($array as $k=>$value){ $reqPar.=$k.'='.urlencode($value).' 阅读全文
posted @ 2012-06-08 17:04 xiao_x 阅读(532) 评论(0) 推荐(0)
摘要: <?php /* Place code to connect to your DB here. */ //include('config.php'); // include your code to connect to DB. $tbl_name=""; //your table name // How many adjacent pages should be shown on each side? $adjacents = 1; /* First get total number of ro... 阅读全文
posted @ 2012-06-08 16:59 xiao_x 阅读(132) 评论(1) 推荐(0)