原创 利用fsocket模擬GET和POST請求(實測好用)

[PHP] <?php   //fsocket模擬get提交   $gurl = "http://localhost/php/t.php?uu=gggggg";   //print_r(parse_url($gurl));   e

原创 新浪天氣接口XML處理方式,最終轉成數組使用代碼

<?php //強制頁面UTF-8編碼 //header("Content-Type: text/html;charset=UTF-8"); $local = trim($_GET["city"]); /

原创 新手,冒個泡,哇咔咔咔~

這玩意兒當個記事本用用挺好,可以放些技術資料

原创 php發送get、post請求的幾種方法

方法1: 用file_get_contents 以get方式獲取內容 [php] view plaincopyprint? <?php   $url='http://www.domain.com/';   $html