看板
[ PHP ]
討論串[請益] 抓圖
共 5 篇文章
內容預覽:
既然你都用snoopy了 curl一定載入. 就用用curl的函數也是滿方便搭. $url="http://f4.wretch.yimg.com/jerryben/52/1326201644.jpg";. $ch=curl_init();. curl_setopt($ch, CURLOPT_URL,
(還有701個字)
內容預覽:
用 file_get_contents() 即可,傳入圖片網址。. 抓完後有兩個選擇,一是直接輸出給瀏覽器看,二是存檔到伺服器上。. $img = file_get_contents("http://de2.php.net/images/php.gif", 0);. // 一. header('Co
(還有10個字)