提供您平價又專業的搬家服務
免費提供紙箱及拆裝,到府估價安心合理
拆除提供無接縫招牌、霓虹招牌、壓克力燈箱
LED等設計製作安裝,工廠直營,價格超優惠

首頁  •  j2h 論壇 • 程式設計討論     • 

[php] curl輸入帳號密碼

房東:凱凱
發表時間:2012-12-19
[檢舉]


$url = \"要丟的url\";

        $curl = curl_init($url);

$post_data[\'langx\']=\"zh-tw\";

$post_data[\'end\']=\"\";

$post_data[\'Submit2\']=\"確定\";

$post_data[\'Uid\']=\"001\";

$post_data[\'username\'] =\"登入帳號\";

$post_data[\'password\'] \"登入密碼\";

//print_r($post_data);print_r($_POST);exit;

curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); //一定要有

            //post資料給指定網頁

            curl_setopt($curl, CURLOPT_POST, 1); //決定用 GET or POST

            curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);

           

            if (curl_errno($curl)) {

                $this->_error = curl_error($curl);

            }

            $Result = curl_exec($curl);

            curl_close($curl);







基本上就是照著 html code paser

http://phorum.study-area.org/index.php/topic,45874.0.html



http://blog.longwin.com.tw/2008/05/php_get_login_cookie_2008/





  • 贊助網站       

    廣利不動產-板橋在地生根最實在--新板特區指名度最高、值得您信賴的好房仲
    完整房訊,房屋、店面熱門精選物件,廣利不動產 優質仲介,房屋租賃、買賣資訊透明,交易真安心!
    廣利不動產-新板特區指名度最高、值得您信賴的好房仲
    您的托付,廣利用心為您服務



  •  共 0 人回應

    姓名:
    佈告內容: